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.sh14
1 files changed, 9 insertions, 5 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
index ced4a482b..8b7c3e37b 100644
--- a/source/kde/kde/post-install/kservice/profile.d/kde.sh
+++ b/source/kde/kde/post-install/kservice/profile.d/kde.sh
@@ -4,7 +4,7 @@ KDEDIRS=/usr
export KDEDIRS
# Add KDE paths if they exist:
-if [ -d /usr/lib/kf5 ]; then
+if [ -d /usr/lib/libexec/kf5 ]; then
PATH="$PATH:/usr/lib/libexec/kf5"
fi
if [ -d /usr/lib/kde4/libexec ]; then
@@ -12,12 +12,16 @@ if [ -d /usr/lib/kde4/libexec ]; then
fi
export PATH
-# Add /etc/kde/xdg to $XDG_CONFIG_DIRS:
-if [ ! "$XDG_CONFIG_DIRS" = "" ]; then
+# If there's no $XDG_CONFIG_DIRS variable, set it to /etc/xdg:
+if [ -z "$XDG_CONFIG_DIRS" ]; then
+ XDG_CONFIG_DIRS=/etc/xdg
+fi
+
+# Add /etc/kde/xdg to $XDG_CONFIG_DIRS (if it exists):
+if [ -d /etc/kde/xdg ]; 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: