]> git.pld-linux.org Git - packages/qt4.git/blob - add-lxde-support.patch
- exceptions are used in some parts, rel 44
[packages/qt4.git] / add-lxde-support.patch
1 Description: Add support for LXDE desktop
2  This patch checks for an environment variable set by LXDE desktop, in order to
3  make Qt4 applications natively use the GTK+ style when run on this desktop
4 Author: RaphaĆ«l Halimi <raphael.halimi@gmail.com>
5 Origin: other
6 Last-Update: 2016-09-06
7 ---
8 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
9 ---
10  src/gui/kernel/qapplication_x11.cpp |    5 +++++
11  1 file changed, 5 insertions(+)
12
13 --- a/src/gui/kernel/qapplication_x11.cpp
14 +++ b/src/gui/kernel/qapplication_x11.cpp
15 @@ -2355,6 +2355,11 @@ void qt_init(QApplicationPrivate *priv,
16                  break;
17              }
18  
19 +            if (qgetenv("DESKTOP_SESSION") == "LXDE") {
20 +                X11->desktopEnvironment = DE_GNOME;
21 +                break;
22 +            }
23 +
24              // GNOME_DESKTOP_SESSION_ID is deprecated for some reason, but still check it
25              if (!qgetenv("GNOME_DESKTOP_SESSION_ID").isEmpty()) {
26                  X11->desktopEnvironment = DE_GNOME;
This page took 0.028755 seconds and 3 git commands to generate.