From 67ca3e3a6bbe63dd5a6b17d9affe0e6ea2ac5742 Mon Sep 17 00:00:00 2001 From: Debian Qt/KDE Maintainers Date: Tue, 15 May 2018 17:24:10 +0100 Subject: [PATCH] add-mate-support Gbp-Pq: Name add-mate-support.patch --- src/gui/kernel/qapplication_x11.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/kernel/qapplication_x11.cpp b/src/gui/kernel/qapplication_x11.cpp index 2e666ce83..b630cab82 100644 --- a/src/gui/kernel/qapplication_x11.cpp +++ b/src/gui/kernel/qapplication_x11.cpp @@ -2361,6 +2361,12 @@ void qt_init(QApplicationPrivate *priv, int, break; } + // Check the equivalent environment variable set by MATE + if (!qgetenv("MATE_DESKTOP_SESSION_ID").isEmpty()) { + X11->desktopEnvironment = DE_GNOME; + break; + } + rc = XGetWindowProperty(X11->display, QX11Info::appRootWindow(), ATOM(_DT_SAVE_MODE), 0, 2, False, XA_STRING, &type, &format, &length, &after, &data); -- 2.30.2