summaryrefslogtreecommitdiffstats
path: root/testing/source/vtown/kde/post-install/kservice/profile.d/kde.csh
diff options
context:
space:
mode:
Diffstat (limited to 'testing/source/vtown/kde/post-install/kservice/profile.d/kde.csh')
-rw-r--r--testing/source/vtown/kde/post-install/kservice/profile.d/kde.csh23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/source/vtown/kde/post-install/kservice/profile.d/kde.csh b/testing/source/vtown/kde/post-install/kservice/profile.d/kde.csh
new file mode 100644
index 000000000..cce370cc9
--- /dev/null
+++ b/testing/source/vtown/kde/post-install/kservice/profile.d/kde.csh
@@ -0,0 +1,23 @@
+#!/bin/csh
+# KDE additions:
+if ( ! $?KDEDIRS ) then
+ setenv KDEDIRS /usr
+endif
+setenv PATH ${PATH}:/usr/lib/kf5:/usr/lib/kde4/libexec
+
+if ( $?XDG_CONFIG_DIRS ) then
+ setenv XDG_CONFIG_DIRS ${XDG_CONFIG_DIRS}:/etc/kde/xdg
+else
+ setenv XDG_CONFIG_DIRS /etc/xdg:/etc/kde/xdg
+endif
+
+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
+ # setenv XDG_RUNTIME_DIR /run/user/$USER
+ setenv XDG_RUNTIME_DIR /tmp/xdg-runtime-$USER
+ mkdir -p $XDG_RUNTIME_DIR
+ chown $USER $XDG_RUNTIME_DIR
+ chmod 700 $XDG_RUNTIME_DIR
+endif