summaryrefslogtreecommitdiffstats
path: root/startkde
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-16 18:23:23 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-16 18:23:23 +0000
commit2e7d96ce374d0150785c7546822b4467bd9ce20d (patch)
treeaf78addc57ce5c649e8e52104eac543ffceecf6a /startkde
parente66cfb6dc471fe445615a17cec31f916fe2d0433 (diff)
downloadtdebase-2e7d96ce374d0150785c7546822b4467bd9ce20d.tar.gz
tdebase-2e7d96ce374d0150785c7546822b4467bd9ce20d.zip
Honor KDEHOME environment variable
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1176116 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'startkde')
-rw-r--r--startkde9
1 files changed, 8 insertions, 1 deletions
diff --git a/startkde b/startkde
index 438f49b68..dc25911b8 100644
--- a/startkde
+++ b/startkde
@@ -60,7 +60,14 @@ fi
# The user's personal KDE directory is usually ~/.kde3, but this setting
# may be overridden by setting KDEHOME.
-export KDEHOME=$HOME/.kde3 && export PATH=/opt/kde3/bin:/opt/kde3/games:$PATH && export XDG_DATA_DIRS=$XDG_DATA_DIRS:/opt/kde3/share/:/usr/share/ && export XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:/opt/kde3/etc/xdg/:/etc/xdg/ && export MANPATH=/opt/kde3/share/man:$MANPATH && export DESKTOP_SESSION=kde3
+if [ -n "$KDEHOME" ]; then
+ export KDEHOME=$KDEHOME
+else
+ export KDEHOME=$HOME/.kde3
+fi
+
+export PATH=/opt/kde3/bin:/opt/kde3/games:$PATH && export XDG_DATA_DIRS=$XDG_DATA_DIRS:/opt/kde3/share/:/usr/share/ && export XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:/opt/kde3/etc/xdg/:/etc/xdg/ && export MANPATH=/opt/kde3/share/man:$MANPATH && export DESKTOP_SESSION=kde3
+
if [ -n "$KDEDIRS" ]; then
export KDEDIRS=$KDEDIRS:/opt/kde3/:/usr/
else