diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-17 21:11:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-17 21:11:18 +0000 |
commit | eac7424f22a70f39c7b57d2beeb87c4a7cd7e93d (patch) | |
tree | 83c19a10f22521290c48d2f39e39b5b7d0316dfc /startkde | |
parent | 543cc6312fbb723545f97ab7a8426be7ddd0d673 (diff) | |
download | tdebase-eac7424f22a70f39c7b57d2beeb87c4a7cd7e93d.tar.gz tdebase-eac7424f22a70f39c7b57d2beeb87c4a7cd7e93d.zip |
Bugfix batch 2/2
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1176512 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'startkde')
-rw-r--r-- | startkde | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -83,7 +83,10 @@ else elif [ -f /usr/bin/kde4-config ]; then # Looks like KDE4 is installed. if [ -d $HOME/.kde ] && [ ! -d $HOME/.kde3 ]; then - # Presume $HOME/.kde is being used for KDE4 + # Presume $HOME/.kde is being used for KDE4 as it already exists. + export KDEHOME=$HOME/.kde3 + else + # Presume $HOME/.kde is being used for KDE4 to be on the safe side. export KDEHOME=$HOME/.kde3 fi elif [ -f /opt/kde3/bin/kde-config ]; then @@ -102,6 +105,12 @@ else echo "[startkde] Set KDEHOME to $KDEHOME." 1>&2 fi +# Run a quick test for root. +if [ -z "$KDEROOTHOME" ] && [ "$UID" = "0" ]; then + echo "startkde: User ID is $UID. Setting KDEROOTHOME to $KDEHOME." + export KDEROOTHOME=$KDEHOME +fi + # Modify the following environment variables only as necessary. if [ -d /opt/kde3/games ]; then export PATH=/opt/kde3/games:$PATH |