https://bugzilla.novell.com/show_bug.cgi?id=331577#c11
--- Comment #11 from Hans Petter Jansson 2007-10-31 20:34:07 MST ---
Created an attachment (id=181598)
--> (https://bugzilla.novell.com/attachment.cgi?id=181598)
libbonobo-2.20.0-quit-with-dbus.patch
This patch makes bonobo-activation-server quit with the user session.
Since libbonobo does not link with X libraries, we cannot watch for the X
display going away like D-Bus itself does -- and since it doesn't link with
D-Bus, we cannot use proper D-Bus functions to watch for the session D-Bus
daemon to go away.
So I've written a hack that connects to the D-Bus unix fd specified by
$DBUS_SESSION_BUS_ADDRESS in b-a-s' env vars and waits for it to be
disconnected. This will happen every 30 seconds, since we don't speak D-Bus
protocol and the auth sequence times out, so we just re-connect and wait for
another interval. If the re-connect fails, the D-Bus daemon must have gone
away, so we cause b-a-s to quit.
Just as a precaution - if the initial connect fails (i.e. there is no D-Bus
when b-a-s is started), this won't cause b-a-s to exit.
I've tested it locally and it seems to work well.
--
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.