[Xfce-bugs] [Bug 5576] New: dbus should be started sooner in xinitrc

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Fri Jul 17 11:29:47 CEST 2009


http://bugzilla.xfce.org/show_bug.cgi?id=5576

           Summary: dbus should be started sooner in xinitrc
    Classification: Xfce
           Product: Xfce-utils
           Version: 4.6.1
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: General
        AssignedTo: xfce-bugs at xfce.org
        ReportedBy: cody-somerville at ubuntu.com


dbus should be started sooner in xinitrc. Specifically, its probably best to
start it before starting anything that might use xinitrc (such as
gnome-screensaver). This will ensure proper setup of the dbus session and also
prevent hangs caused by race conditions when using older versions of libxcb.

--- a/scripts/xinitrc.in.in
+++ b/scripts/xinitrc.in.in
@@ -53,6 +53,14 @@
 # load local modmap
 test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap

+# Use dbus-launch if installed.
+if test x"$DBUS_SESSION_BUS_ADDRESS" = x""; then
+    dbuslaunch=`which dbus-launch`
+    if test x"$dbuslaunch" != x"" -a x"$dbuslaunch" != x"no"; then
+        eval `$dbuslaunch --sh-syntax --exit-with-session`
+    fi
+fi
+
 # Launch xscreensaver (if available), but only as non-root user
 if test $UID -gt 0 -a -z "$VNCSESSION"; then 
     if test x"`which xscreensaver 2>/dev/null`" != x""; then
@@ -74,14 +82,6 @@
 fi
 fi

-# Use dbus-launch if installed.
-if test x"$DBUS_SESSION_BUS_ADDRESS" = x""; then
-    dbuslaunch=`which dbus-launch`
-    if test x"$dbuslaunch" != x"" -a x"$dbuslaunch" != x"no"; then
-        eval `$dbuslaunch --sh-syntax --exit-with-session`
-    fi
-fi
-
 # Run xfce4-session if installed
 xfcesm=`which xfce4-session`
 case "x$xfcesm" in

-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Xfce-bugs mailing list