From 0b0973bf46d857dbf06f7c1ea403a11c3ccf1229 Mon Sep 17 00:00:00 2001 From: Debian Qt/KDE Maintainers Date: Wed, 18 Apr 2018 21:45:31 +0100 Subject: [PATCH] add-lxde-support Gbp-Pq: Name add-lxde-support.patch --- src/gui/kernel/qapplication_x11.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.30.2