Package: qt4-x11 Version: 4:4.8.7+dfsg-8 Severity: wishlist Tags: upstream patch
Hi, Same rationale as #825769, here is a small patch to allow Qt4 to detect when they're running under LXDE desktop, and behave like they're run under Gnome (mainly, use the current GTK theme). I tested it under LXDE and it seems to work; it's also quite simple and thus unlikely to change anything under other desktops. Regards, -- Raphaël Halimi
Description: Add support for LXDE desktop This patch checks for an environment variable set by LXDE desktop, in order to make Qt4 applications natively use the GTK+ style when run on this desktop Author: Raphaël Halimi <raphael.hal...@gmail.com> Origin: other Last-Update: 2016-09-06 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/src/gui/kernel/qapplication_x11.cpp +++ b/src/gui/kernel/qapplication_x11.cpp @@ -2355,6 +2355,11 @@ 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;
signature.asc
Description: OpenPGP digital signature