aboutsummaryrefslogtreecommitdiffstats
path: root/s2u.sh
diff options
context:
space:
mode:
Diffstat (limited to 's2u.sh')
-rwxr-xr-xs2u.sh24
1 files changed, 2 insertions, 22 deletions
diff --git a/s2u.sh b/s2u.sh
index c0e08d7..3f48b1f 100755
--- a/s2u.sh
+++ b/s2u.sh
@@ -6,32 +6,12 @@
# Version : $Id$
# Author : Frederic Lepied
# Created On : Sat Jul 31 01:03:37 2004
-# Purpose : launch the dbus client attaching it to an
-# exisiting dbus session or launching a new one to
-# attache itself to.
+# Purpose : launch the dbus client attaching it to
+# system bus
#---------------------------------------------------------------
CURR_DISPLAY=`LC_ALL=C xdpyinfo | grep 'display' | awk '{print $4}'`
-f="/tmp/dbus-$USER-xsession$CURR_DISPLAY"
-
-vars() {
- if [ -f "$f" -a -O "$f" ]; then
- . "$f"
- fi
-}
-
-vars
-
-if [ -z "$DBUS_SESSION_BUS_PID" -o ! -d "/proc/$DBUS_SESSION_BUS_PID" ]; then
- F=`mktemp /tmp/dbus.XXXXXX`
- chmod 600 $F
- dbus-launch --sh-syntax --exit-with-session > $F
- rm -f "$f"
- mv -f $F "$f"
- vars
-fi
-
exec s2u --daemon=yes
# s2u.sh ends here