summaryrefslogtreecommitdiffstats
path: root/kde/post-install/kservice
diff options
context:
space:
mode:
Diffstat (limited to 'kde/post-install/kservice')
-rw-r--r--kde/post-install/kservice/profile.d/kde.csh19
-rw-r--r--kde/post-install/kservice/profile.d/kde.sh19
2 files changed, 38 insertions, 0 deletions
diff --git a/kde/post-install/kservice/profile.d/kde.csh b/kde/post-install/kservice/profile.d/kde.csh
new file mode 100644
index 0000000..bb0ea69
--- /dev/null
+++ b/kde/post-install/kservice/profile.d/kde.csh
@@ -0,0 +1,19 @@
+#!/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
+ setenv XDG_RUNTIME_DIR /tmp/xdg-runtime-$USER
+ mkdir -p $XDG_RUNTIME_DIR
+ chown $USER $XDG_RUNTIME_DIR
+ chmod 700 $XDG_RUNTIME_DIR
+endif
diff --git a/kde/post-install/kservice/profile.d/kde.sh b/kde/post-install/kservice/profile.d/kde.sh
new file mode 100644
index 0000000..8883fc8
--- /dev/null
+++ b/kde/post-install/kservice/profile.d/kde.sh
@@ -0,0 +1,19 @@
+#!/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
+if [ "$XDG_RUNTIME_DIR" = "" ]; then
+ 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_CONFIG_DIRS XDG_RUNTIME_DIR
+