Skip to content

Commit c1cae32

Browse files
committed
Prevent issue where wayland has black screen due to broken gpu accel (#165, #610)
1 parent cd8f418 commit c1cae32

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/main.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ void ShowLicenseInfo()
8282
/////////////////////////////////////////////////////////////////////////////////////////
8383
QStringList g_qtFlags = {
8484
"--disable-web-security",
85-
"--enable-gpu-rasterization"
85+
"--enable-gpu-rasterization",
86+
#ifdef Q_OS_LINUX
87+
"--disable-gpu"
88+
#endif
8689
};
8790

8891
/////////////////////////////////////////////////////////////////////////////////////////
@@ -107,7 +110,7 @@ int main(int argc, char *argv[])
107110
"the scale (DPI) of the desktop interface.");
108111
scaleOption.setValueName("scale");
109112
scaleOption.setDefaultValue("auto");
110-
113+
111114
auto platformOption = QCommandLineOption("platform", "Equivalant to QT_QPA_PLATFORM.");
112115
platformOption.setValueName("platform");
113116
platformOption.setDefaultValue("default");
@@ -170,7 +173,7 @@ int main(int argc, char *argv[])
170173
QApplication app(newArgc, newArgv);
171174
app.setApplicationName("Jellyfin Media Player");
172175

173-
#if defined(Q_OS_WIN)
176+
#if defined(Q_OS_WIN)
174177
// Setting window icon on OSX will break user ability to change it
175178
app.setWindowIcon(QIcon(":/images/icon.png"));
176179
#endif

0 commit comments

Comments
 (0)