summaryrefslogtreecommitdiffstats
path: root/source/kde/kde/post-install/kservice/profile.d/kde.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/kde/kde/post-install/kservice/profile.d/kde.sh')
-rw-r--r--source/kde/kde/post-install/kservice/profile.d/kde.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/source/kde/kde/post-install/kservice/profile.d/kde.sh b/source/kde/kde/post-install/kservice/profile.d/kde.sh
new file mode 100644
index 000000000..ec317ad1e
--- /dev/null
+++ b/source/kde/kde/post-install/kservice/profile.d/kde.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+# KDE additions:
+KDEDIRS=/usr
+export KDEDIRS
+PATH="$PATH:/usr/lib/kf5:/usr/lib/kde4/libexec"
+export PATH
+if [ ! "$XDG_CONFIG_DIRS" = "" ]; then
+ XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:/etc/kde/xdg
+else
+ XDG_CONFIG_DIRS=/etc/xdg:/etc/kde/xdg
+fi
+export XDG_CONFIG_DIRS
+
+# Commented out, since PAM should take care of this:
+#if [ "$XDG_RUNTIME_DIR" = "" ]; then
+# # Using /run/user would be more in line with XDG specs, but in that case
+# # we should mount /run as tmpfs and add this to the Slackware rc scripts:
+# # mkdir /run/user ; chmod 1777 /run/user
+# # XDG_RUNTIME_DIR=/run/user/$USER
+# XDG_RUNTIME_DIR=/tmp/xdg-runtime-$USER
+# mkdir -p $XDG_RUNTIME_DIR
+# chown $USER $XDG_RUNTIME_DIR
+# chmod 700 $XDG_RUNTIME_DIR
+#fi
+#export XDG_RUNTIME_DIR