summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEric Koegel <eric.koegel@gmail.com>2014-10-20 08:17:13 +0300
committerEric Koegel <eric.koegel@gmail.com>2014-10-20 08:23:02 +0300
commit4daf68ebb6991194848756ff4f05a3ed736118bb (patch)
treec71798bb8e40f76ab4a6df018bf76753f650876f /scripts
parent4aab642a62b134b5fad6add510ca5b25a505cdf2 (diff)
downloadxfce4-session-4daf68ebb6991194848756ff4f05a3ed736118bb.tar.gz
Export XDG_CURRENT_DESKTOP (Bug #11239)
We already have been using XDG_CURRENT_DESKTOP in things such as garcon and other libraries but xfce4-session hasn't been setting it if it was left unset. This is now used by things like QT5 for theme decorations. Patch provided in: https://forum.manjaro.org/index.php?topic=13728
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/xinitrc.in.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/xinitrc.in.in b/scripts/xinitrc.in.in
index c67232ec..b2344079 100755
--- a/scripts/xinitrc.in.in
+++ b/scripts/xinitrc.in.in
@@ -22,6 +22,12 @@ if test "x$DESKTOP_SESSION" = "x"; then
export DESKTOP_SESSION
fi
+# set XDG_CURRENT_DESKTOP so that Qt 5 applications can identify user set Xfce theme
+if test "x$XDG_CURRENT_DESKTOP" = "x"; then
+ XDG_CURRENT_DESKTOP="XFCE"
+ export XDG_CURRENT_DESKTOP
+fi
+
# $XDG_CONFIG_HOME defines the base directory relative to which user specific
# configuration files should be stored. If $XDG_CONFIG_HOME is either not set
# or empty, a default equal to $HOME/.config should be used.