Implement autolaunch:

Bug #421353 reported by Honza Bartoš
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NDesk D-Bus
New
Wishlist
Unassigned

Bug Description

NDesk D-Bus doesn't use dbus autolaunch feature (as described, for example, in dbus-launch man page), which allows the program to find the session dbus bus using ~/.dbus/session-bus/ or root X window property. The program dies with exception "No equals sign found", if DBUS_SESSION_BUS_ADDRESS is set to "autolaunch:". Programs using C dbus implementation works correctly.

Revision history for this message
alp (atoker) wrote :

Last I checked, this is only an issue on non-standard environments that don't provide a long-running D-Bus daemon. Launching a daemon late in the game is likely to have unpredictable results, and may lead to multiple session buses in the same logical user session.

If it's causing a lot of difficulty, I guess the feature could be implemented using the daemon functionality now, but it's difficult to see the use case. Can you give some more details about your setup?

Note that "autolaunch:" isn't mentioned anywhere in the spec: http://dbus.freedesktop.org/doc/dbus-specification.html

Changed in ndesk-dbus:
importance: Undecided → Wishlist
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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.