aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@mandriva.org>1999-12-19 18:55:28 +0000
committerChmouel Boudjnah <chmouel@mandriva.org>1999-12-19 18:55:28 +0000
commit3a0322bf9232a964e6c7da1d34f0e47e98f83571 (patch)
tree166dd72272f0f7b136b3b38f912138a5ef752a52 /bin
parentdc1f677f34a9592611a5db2739a75ddedc27ecba (diff)
downloadcommon-data-3a0322bf9232a964e6c7da1d34f0e47e98f83571.tar
common-data-3a0322bf9232a964e6c7da1d34f0e47e98f83571.tar.gz
common-data-3a0322bf9232a964e6c7da1d34f0e47e98f83571.tar.bz2
common-data-3a0322bf9232a964e6c7da1d34f0e47e98f83571.tar.xz
common-data-3a0322bf9232a964e6c7da1d34f0e47e98f83571.zip
"Seethechangelog"
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fndSession6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/fndSession b/bin/fndSession
index baf45da..5697a2d 100755
--- a/bin/fndSession
+++ b/bin/fndSession
@@ -4,6 +4,8 @@
LIST="SessionTypes"
+TMP=$(/bin/mktemp /tmp/.kdm.XXXXXXX)
+
[ -x /usr/bin/kde ] && {
LIST="$LIST=kde"; FIRST=yes
}
@@ -62,5 +64,5 @@ if [ $FIRST = "yes" ];then
else
LIST="$LIST=default;failsafe;"
fi
-sed "s/^SessionTypes.*/"$LIST"/" /usr/share/config/kdmrc > /tmp/$$.kdmrc && \
-mv /tmp/$$.kdmrc /usr/share/config/kdmrc
+sed "s/^SessionTypes.*/"$LIST"/" /usr/share/config/kdmrc > $TMP && \
+mv $TMP /usr/share/config/kdmrc