From: Debian Qt/KDE Maintainers Date: Fri, 9 Sep 2016 17:09:51 +0000 (+0000) Subject: add-lxde-support X-Git-Tag: archive/raspbian/4%4.8.7+dfsg-15+rpi1~1^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9ae32aa6a8303cf47309ca142854ffcaa0be2ff7;p=qt4-x11.git add-lxde-support Gbp-Pq: Name add-lxde-support.patch --- diff --git a/src/gui/kernel/qapplication_x11.cpp b/src/gui/kernel/qapplication_x11.cpp index b630cab82..213de055c 100644 --- a/src/gui/kernel/qapplication_x11.cpp +++ b/src/gui/kernel/qapplication_x11.cpp @@ -2355,6 +2355,11 @@ void qt_init(QApplicationPrivate *priv, int, break; } + if (qgetenv("DESKTOP_SESSION") == "LXDE") { + X11->desktopEnvironment = DE_GNOME; + break; + } + // GNOME_DESKTOP_SESSION_ID is deprecated for some reason, but still check it if (!qgetenv("GNOME_DESKTOP_SESSION_ID").isEmpty()) { X11->desktopEnvironment = DE_GNOME;