summaryrefslogtreecommitdiff
path: root/Xsession.d/55kanotix-kde
diff options
context:
space:
mode:
Diffstat (limited to 'Xsession.d/55kanotix-kde')
-rw-r--r--Xsession.d/55kanotix-kde14
1 files changed, 14 insertions, 0 deletions
diff --git a/Xsession.d/55kanotix-kde b/Xsession.d/55kanotix-kde
new file mode 100644
index 0000000..788169c
--- /dev/null
+++ b/Xsession.d/55kanotix-kde
@@ -0,0 +1,14 @@
+# If we are running kde, export KDEDIRS with own Kanotix kde-settings dir
+
+BASESTARTUP=$(basename "$STARTUP" | cut -d\ -f1)
+if [ "$BASESTARTUP" = x-session-manager ]; then
+ BASESTARTUP=$(basename $(readlink /etc/alternatives/x-session-manager))
+fi
+if [ "$BASESTARTUP" = "startkde" ]; then
+ if [[ -z "$KDEDIRS" ]]; then
+ KDEDIRS=/usr/share/kde-kanotix-settings/:/usr
+ else
+ KDEDIRS=/usr/share/kde-kanotix-settings/:$KDEDIRS:/usr
+ fi
+ export KDEDIRS
+fi