Comment 2 for bug 421353

Revision history for this message
Honza Bartoš (thingwath) wrote :

Setup and a use case is quite simple. I have a screen session (with irssi and so on) that outlives many, many desktop sessions, all of them with a new dbus session bus. So I set DBUS_SESSION_BUS_ADDRESS to autolaunch:, which causes all dbus applications (using original C implementation) to find the bus using files mentioned above. It's far the easiest thing to do, and works very well, except ndesk, of course, which doesn't support it.

I also know, that autolaunch isn't directly mentioned in the dbus format specification. But it is implemented in the original C code, which is used by almost every dbus library.

I have wrote a little hack (the code is really ugly), that fixes the issue for me, so I think I can happily live without autolaunch in vanilla ndesk, but it would be nice. Of course, the code isn't complete, most likely, as the only documentation I could find is AUTOMATIC LAUNCHING chapter of dbus-launch(1) manpage. It's just a hack.