mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-04 10:33:30 +00: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:
parent
8c8a44b26a
commit
64176daaf4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue