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" ||