Mailinglist Archive: opensuse-bugs (5398 mails)

< Previous Next >
[Bug 266931] dbus-daemon does not end with users sessions and has many instances for each user
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sun, 3 Jun 2007 10:46:37 -0600 (MDT)
  • Message-id: <20070604175126.4FF5FCC77D@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=266931





------- Comment #9 from gjeilers@xxxxxxxxxxxxxxxxxxxxx  2007-06-03 10:46 MST -------
The problem is caused by loss of the environment variable
DBUS_SESSION_BUS_ADDRESS between ending a desktop session and starting a new
one.  In the case of KDE at least, this can be fixed by saving the value in a
per-session file immediately after the session dbus-daemon is created and
restoring it when a new session is started.

You can do that by adding the following lines near the beginning of
/opt/kde3/bin/startkde:

  # Save the current dbus session bus address
  echo $DBUS_SESSION_BUS_ADDRESS >~/.dbus-session-bus-address

You also need to add the following line before the part of
/etc/X11/xinit/xinitrc.common that tests for and starts a session dbus-daemon:

  # Restore the dbus session bus address if any
  test -r ~/.dbus-session-bus-address && \
       read DBUS_SESSION_BUS_ADDRESS <~/.dbus-session-bus-address
  export DBUS_SESSION_BUS_ADDRESS

There is probably something similar that would work for gnome desktops.

A much better solution would be to prevent the environment variable from
getting cleared in the first place, but I have not been able to find the code
that executes when a desktop session is closed.

This bug is NOT specific to x86-64 hardware as reported.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >