Fix Gnome Wayland detection

This commit is contained in:
lupoDharkael
2017-12-23 23:46:01 +01:00
parent 295dfab5ec
commit 67297f1fe7

View File

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