if [ "$SESSION" == "" ]
then
- exit 1
+ # wait for all Xfce processes to exit cleanly
+ wait
+
+ # report success to slim
+ exit 0
fi
$SESSION
+ # lame hack
+ killall configbutton 2> /dev/null
+
SESSION=$(cat /tmp/gui.load 2> /dev/null)
STOP_SESSION=$(grep $SESSION /etc/pandora/conf/gui.conf | awk -F\; '{print $4}')
echo $STOP_SESSION > /tmp/gui.stop