! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
dbus should be started sooner in xinitrc
Status:
RESOLVED: FIXED
Product:
Xfce-utils
Component:
General

Comments

Description Cody A.W. Somerville 2009-07-17 09:29:46 CEST
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

Bug #5576

Reported by:
Cody A.W. Somerville
Reported on: 2009-07-17
Last modified on: 2010-07-26

People

Assignee:
Xfce Bug Triage
CC List:
1 user

Version

Attachments

Additional information