how to "discover" the session bus

Ross Burton ross at
Tue Apr 8 13:15:37 PDT 2008

On Tue, 2008-04-08 at 11:08 -0700, Shawn Rutledge wrote:
> I'm getting started with libdbus (developing a Scheme binding).
> On OpenMoko the issue has come up, how to "discover" the bus address
> of the already-running session daemon.  /etc/X11/Xsession starts the
> daemon, so inside that X session it is accessible, but what if you ssh
> to the phone or otherwise get another shell?  I modified Xsession to
> do this

Set $DISPLAY and let DBus find the session bus by looking at the
properties DBus sets on the root window?

Ross Burton                                 mail: ross at
                                          jabber: ross at
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF

More information about the dbus mailing list