aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/fndSession6
-rw-r--r--mandrake_desk.spec2
2 files changed, 6 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
diff --git a/mandrake_desk.spec b/mandrake_desk.spec
index 0109416..1d7cb88 100644
--- a/mandrake_desk.spec
+++ b/mandrake_desk.spec
@@ -10,6 +10,8 @@ Copyright: GPL
Group: Base
Icon: mandrake-small.xpm
BuildRoot: /tmp/%{name}-buildroot
+# get the source from our cvs repository (see
+# http://www.linuxmandrake.com/en/cvs.php3)
Source: mandrake_desk-%{version}.tar.bz2
BuildArchitectures: noarch
BuildRequires: /usr/X11R6/bin/convert