how to "discover" the session bus

Colin Walters walters at verbum.org
Tue Apr 8 12:50:11 PDT 2008


On Tue, Apr 8, 2008 at 3:24 PM, Shawn Rutledge
<shawn.t.rutledge at gmail.com> wrote:
>
>  They put "dial the phone" functionality on the session bus.  I'm
>  thinking maybe it ought to be on the system bus?  Then this problem
>  would be replaced by a different (but probably common) one:  how does
>  a non-privileged user get permission to interact with the system bus?

Look at /etc/dbus-1/system.d/*

>  (and so far that's not an issue because everything runs as root, but I
>  would expect that to change eventually)

Ah.  Well, everything running as root definitely conflates the DBus model.

>  Besides the phone functionality, I'm interested in gps (gpsd has a
>  dbus interface which I will try to figure out how to use pretty soon),
>  power management, Bluetooth and we'll see what else.  What do you
>  think, should all of these be system-bus services?

Yep, that's the way it works in a modern free desktop system.  HAL and
gnome-power-manager interact, and I think bluetooth was actually one
of the very first original motivating use cases for DBus.


More information about the dbus mailing list