[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdebase
From: Luboš Luňák <l.lunak () kde ! org>
Date: 2007-03-12 17:59:59
Message-ID: 1173722399.738431.22431.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 641829 by lunakl:
Check for return value of lnusertemp. Adjusted patch from #142806.
M +14 -11 startkde
--- branches/KDE/3.5/kdebase/startkde #641828:641829
@@ -265,18 +265,21 @@
export GS_LIB
fi
-# Link "tmp" resource to directory in /tmp
-# Creates a directory /tmp/kde-$USER and links $KDEHOME/tmp-$HOSTNAME to it.
-lnusertemp tmp >/dev/null
+# Link "tmp" "socket" and "cache" resources to directory in /tmp
+# Creates:
+# - a directory /tmp/kde-$USER and links $KDEHOME/tmp-$HOSTNAME to it.
+# - a directory /tmp/ksocket-$USER and links $KDEHOME/socket-$HOSTNAME to it.
+# - a directory /var/tmp/kdecache-$USER and links $KDEHOME/cache-$HOSTNAME to it.
+# Note: temporary locations can be overriden through the KDETMP and KDEVARTMP
+# environment variables
+for resource in tmp cache socket; do
+ if ! lnusertemp $resource >/dev/null; then
+ echo 'startkde: Call to lnusertemp failed (temporary directories full?). \
Check your installation.' 1>&2 + xmessage -geometry 600x100 "Call to \
lnusertemp failed (temporary directories full?). Check your installation." + \
exit 1 + fi
+done
-# Link "socket" resource to directory in /tmp
-# Creates a directory /tmp/ksocket-$USER and links $KDEHOME/socket-$HOSTNAME to it.
-lnusertemp socket >/dev/null
-
-# Link "cache" resource to directory in /var/tmp
-# Creates a directory /var/tmp/kdecache-$USER and links $KDEHOME/cache-$HOSTNAME to \
it.
-lnusertemp cache >/dev/null
-
# In case of dcop sockets left by a previous session, cleanup
dcopserver_shutdown
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic