how to "discover" the session bus

Ross Burton ross at burtonini.com
Tue Apr 8 14:58:30 PDT 2008


On Tue, 2008-04-08 at 23:28 +0200, Thiago Macieira wrote:
> That currently works only as long as the D-Bus session was autolaunched as 
> well. If someone used dbus-launch directly, chances are that the 
> information is not on the X11 window.

Ah, damn.  Why is this?  Always setting the property on startup if X is
present seems likes a good idea.

> (Technically speaking, it's not the root window. When in autolaunch mode, 
> dbus-launch creates a selection atom and assigns it to its own window; in 
> that window, it keeps two properties: the PID and the session address. 
> The discovery process is to obtain the WId of the selection atom and then 
> get the well-known properties from that window. If dbus-launch crashes, 
> the information disappears automatically -- no stale info on the root 
> window)

Ah, cunning. :)

Ross
-- 
Ross Burton                                 mail: ross at burtonini.com
                                          jabber: ross at burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF





More information about the dbus mailing list