[Pkg-utopia-maintainers] Bug#522370: Bug#518069: Bug#518069: gnome-session: gnome, fails to start after upgrade

Josselin Mouette joss at debian.org
Thu Apr 9 10:38:10 UTC 2009


unmerge 518069
severity 522370 normal
retitle 522370 D-Bus should always started when running a GNOME session
tag 522370 + patch
severity 518069 normal
retitle 518069 D-Bus daemon is auto-spawned several times upon login
reassign 518069 gnome-session
thanks

Le mercredi 08 avril 2009 à 21:53 +0200, Michael Biebl a écrit :
> I've seen that you merged those too bugs. But in message number #126 and #131 in
> #518069, it is said that both have "use-session-bus", so it is really the same
> issue here.

Yes there are two issues, so I will reassign one of them.

First issue, disabling "use-session-bus" breaks GNOME. There is no
reason to not run dbus-launch when logging in a GNOME session, so I
strongly recommend to apply the patch I already suggested to dbus-x11.

--- 75dbus_dbus-launch	2006-06-28 20:09:16.000000000 +0200
+++ /tmp/75dbus_dbus-launch	2009-03-25 00:04:32.153708156 +0100
@@ -6,7 +6,7 @@
 STARTDBUS=
 DBUSLAUNCH=/usr/bin/dbus-launch
 
-if grep -qs ^use-session-dbus "$OPTIONFILE"; then
+if grep -qs ^use-session-dbus "$OPTIONFILE" || [ -n "$GNOMERC" ]; then
   if [ -x "$DBUSLAUNCH" ]; then
     STARTDBUS=yes
   fi

Second issue, there are cases when none of the scripts
in /etc/X11/Xsession.d are read. This implies the following conditions:
      * using startx instead of a display manager
      * having a .xinitrc file

I consider you really should know what you are doing in this case. If
you are launching gnome-session by hand in your .xinitrc, you should do
what it takes to start it, and it is not "gnome-session" but now
"dbus-launch --exit-with-session gnome-session". If you don’t know what
you are doing, don’t use a .xinitrc.

I guess that several of you are using .xinitrc for bad reasons, namely
starting other stuff before gnome-session. This can be achieved in a
much better way by using .xsessionrc or .gnomerc (both are sourced
before executing gnome-session).

Nevertheless, there is a bug in gnome-session: autospawning the D-Bus
daemon, which is done by the GConf library, leads to race conditions.
Spawning the daemon if it is not here yet should be the first thing
gnome-session does. A simpler way might be to throw an error dialog if
there is no D-Bus daemon, and frankly I’m tempted to do that given the
amount of bugs you’ll encounter if dbus-daemon is not started before
gnome-session.

Cheers,
-- 
 .''`.      Debian 5.0 "Lenny" has been released!
: :' :
`. `'   Last night, Darth Vader came down from planet Vulcan and told
  `-    me that if you don't install Lenny, he'd melt your brain.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20090409/8c64602f/attachment-0001.pgp>


More information about the Pkg-utopia-maintainers mailing list