summaryrefslogtreecommitdiffstats
path: root/etc/X11/Xsession.d
diff options
context:
space:
mode:
Diffstat (limited to 'etc/X11/Xsession.d')
-rw-r--r--etc/X11/Xsession.d/56xebian-session7
-rw-r--r--etc/X11/Xsession.d/60x11-common_xdg_path24
2 files changed, 31 insertions, 0 deletions
diff --git a/etc/X11/Xsession.d/56xebian-session b/etc/X11/Xsession.d/56xebian-session
new file mode 100644
index 0000000..893deef
--- /dev/null
+++ b/etc/X11/Xsession.d/56xebian-session
@@ -0,0 +1,7 @@
+# Set default environment vars in Xebian
+if [ "$DESKTOP_SESSION" = xebian ]; then
+ # Disable GTK 3.16 overlay scrollbars
+ export GTK_OVERLAY_SCROLLING=0
+ # Qt5 apps to use GTK style
+ export QT_QPA_PLATFORMTHEME=gtk2
+fi
diff --git a/etc/X11/Xsession.d/60x11-common_xdg_path b/etc/X11/Xsession.d/60x11-common_xdg_path
new file mode 100644
index 0000000..a3083ad
--- /dev/null
+++ b/etc/X11/Xsession.d/60x11-common_xdg_path
@@ -0,0 +1,24 @@
+# This file is sourced by Xsession(5), not executed.
+# Add additional xdg paths depending on selected desktop session
+
+DEFAULT_XDG_CONFIG_DIRS='/etc/xdg'
+DEFAULT_XDG_DATA_DIRS='/usr/local/share/:/usr/share/'
+if [ -n "$DESKTOP_SESSION" ]; then
+ # readd default if was empty
+ if [ -z "$XDG_CONFIG_DIRS" ]; then
+ XDG_CONFIG_DIRS="$DEFAULT_XDG_CONFIG_DIRS"/xdg-"$DESKTOP_SESSION":"$DEFAULT_XDG_CONFIG_DIRS"
+ elif [ -n "${XDG_CONFIG_DIRS##*$DEFAULT_XDG_CONFIG_DIRS/xdg-$DESKTOP_SESSION*}" ]; then
+ XDG_CONFIG_DIRS="$DEFAULT_XDG_CONFIG_DIRS"/xdg-"$DESKTOP_SESSION":"$XDG_CONFIG_DIRS"
+ fi
+ export XDG_CONFIG_DIRS
+ # gnome is already added if gnome-session installed
+ if [ "$DESKTOP_SESSION" != "gnome" ]; then
+ if [ -z "$XDG_DATA_DIRS" ]; then
+ XDG_DATA_DIRS="$DEFAULT_XDG_DATA_DIRS"
+ fi
+ if [ -n "${XDG_DATA_DIRS##*/usr/share/$DESKTOP_SESSION*}" ]; then
+ XDG_DATA_DIRS=/usr/share/"$DESKTOP_SESSION":"$XDG_DATA_DIRS"
+ fi
+ export XDG_DATA_DIRS
+ fi
+fi