From 67297f1fe7a7b4f1d2fe915bab78c2b54cd0cced Mon Sep 17 00:00:00 2001 From: lupoDharkael Date: Sat, 23 Dec 2017 23:46:01 +0100 Subject: [PATCH] Fix Gnome Wayland detection --- src/utils/desktopinfo.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils/desktopinfo.cpp b/src/utils/desktopinfo.cpp index bb6e1795..5b0edb6c 100644 --- a/src/utils/desktopinfo.cpp +++ b/src/utils/desktopinfo.cpp @@ -36,9 +36,8 @@ bool DesktopInfo::waylandDectected() { DesktopInfo::WM DesktopInfo::windowManager() { DesktopInfo::WM res = DesktopInfo::OTHER; - if (XDG_CURRENT_DESKTOP == "GNOME" || - (!GNOME_DESKTOP_SESSION_ID.isEmpty() && - "this-is-deprecated" != GNOME_DESKTOP_SESSION_ID) || + if (XDG_CURRENT_DESKTOP.contains("GNOME", Qt::CaseInsensitive) || + !GNOME_DESKTOP_SESSION_ID.isEmpty() || QString::compare("GNOME", GDMSESSION, Qt::CaseInsensitive) == 0 || GDMSESSION == "gnome-shell" || GDMSESSION == "gnome-classic" ||