diff options
author | Ani <ani-leo@outlook.com> | 2021-03-07 16:56:22 +0100 |
---|---|---|
committer | Ani <ani-leo@outlook.com> | 2021-03-07 16:56:22 +0100 |
commit | cd7abba1a9e713e9557f6dfcae1b609eaa91995b (patch) | |
tree | 01b971a3c18537aed24f36c50bdbc374329ee2e7 | |
parent | Merge pull request #5323 from Morph1984/enforce-c4101 (diff) | |
download | yuzu-cd7abba1a9e713e9557f6dfcae1b609eaa91995b.tar yuzu-cd7abba1a9e713e9557f6dfcae1b609eaa91995b.tar.gz yuzu-cd7abba1a9e713e9557f6dfcae1b609eaa91995b.tar.bz2 yuzu-cd7abba1a9e713e9557f6dfcae1b609eaa91995b.tar.lz yuzu-cd7abba1a9e713e9557f6dfcae1b609eaa91995b.tar.xz yuzu-cd7abba1a9e713e9557f6dfcae1b609eaa91995b.tar.zst yuzu-cd7abba1a9e713e9557f6dfcae1b609eaa91995b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/yuzu/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 2c10160c8..e5d27969c 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -59,6 +59,7 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual #include <QPushButton> #include <QShortcut> #include <QStatusBar> +#include <QString> #include <QSysInfo> #include <QUrl> #include <QtConcurrent/QtConcurrent> @@ -2999,6 +3000,14 @@ int main(int argc, char* argv[]) { chdir(bin_path.c_str()); #endif +#ifdef __linux__ + // Set the DISPLAY variable in order to open web browsers + // TODO (lat9nq): Find a better solution for AppImages to start external applications + if (QString::fromLocal8Bit(qgetenv("DISPLAY")).isEmpty()) { + qputenv("DISPLAY", ":0"); + } +#endif + // Enables the core to make the qt created contexts current on std::threads QCoreApplication::setAttribute(Qt::AA_DontCheckOpenGLContextThreadAffinity); QApplication app(argc, argv); |