lifecycle of the message bus

Thomas Leonard tal00r@ecs.soton.ac.uk
Mon, 14 Jul 2003 15:41:55 +0100


On Sun, Jul 13, 2003 at 03:10:15PM -0400, Havoc Pennington wrote:
> On Sun, Jul 13, 2003 at 07:53:31PM +0100, Thomas Leonard wrote: 
> > Did the X transport for DBUS ever get written?
> 
> Not yet. I don't think we'd necessarily want that to be required 
> in order to use the session bus, though.

No, but if you're getting the babysitter to connect to the X server, then
in that case you always want it, I think.

> > BTW, running configure with no arguments results in:
> > 
> > $ dbus-launch 
> > Failed to start message bus: Failed to read directory
> > "/usr/local/etc/dbus-1/NONE/lib/dbus-1.0/services": No such file or
> > directory
> > 
> > Also, the man page suggests:
> > 	eval `dbus-launch --exit-with-session`
> > 
> > but that command never returns (not closing stdout?)
> 
> With cvs HEAD? I think some stuff like this may be fixed in CVS.

Nope, still doesn't work.

> If not, the first error looks like it may happen if you don't specify
> --prefix to configure, the second would need some debugging.

Using --prefix fixes it. For the second, looks like the babysitter doesn't
close stdout:

$ DBUS_VERBOSE=1 dbus-launch --exit-with-session|cat -
8266: --exit-with-session enabled
8266: === Parent dbus-launch continues
8266: Waiting for babysitter's intermediate parent
8267: === Babysitter's intermediate parent created
8267: === Babysitter's intermediate parent continues
8267: 8269: === Bus exec process created
8269: Calling exec()
=== Babysitter's intermediate parent continues again
8267: Babysitter's intermediate parent exiting
8266: Reading address from bus
8266: Reading PID from babysitter
8270: === Babysitter process created
8270: Reading PID from daemon
8270: Got PID 8271 from daemon
8266: dbus-launch exiting
DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-PB5DOsiEPC'
DBUS_SESSION_BUS_PID=8271
8270: Successfully opened X display
8270: stdin isatty(), monitoring it
[ doesn't return ]


-- 
Thomas Leonard			http://rox.sourceforge.net
tal00r@ecs.soton.ac.uk		tal197@users.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1