mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-31 02:13:51 +08:00
UI: Force Wayland usage on Ubuntu GNOME
XDG_CURRENT_DESKTOP is set to "ubuntu:GNOME" on Ubuntu custom version of GNOME.
This commit is contained in:
committed by
Kurt Kartaltepe
parent
8c8a44b26a
commit
64176daaf4
+1
-1
@@ -2317,7 +2317,7 @@ static int run_program(fstream &logFile, int argc, char *argv[])
|
||||
|
||||
const char *desktop = getenv("XDG_CURRENT_DESKTOP");
|
||||
const char *session_type = getenv("XDG_SESSION_TYPE");
|
||||
if (session_type && desktop && strcmp(desktop, "GNOME") == 0 &&
|
||||
if (session_type && desktop && strstr(desktop, "GNOME") != nullptr &&
|
||||
strcmp(session_type, "wayland") == 0)
|
||||
setenv("QT_QPA_PLATFORM", "wayland", false);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user