name resolving of dbus-monitor output

Rémi Denis-Courmont remi at
Fri Jul 16 05:57:51 PDT 2010

On Fri, 16 Jul 2010 14:46:02 +0200, "Sven" <sven.2009 at> wrote:
> Hello dbus-ml,
> when i use dbus-monitor the sender= value is numerical.
> But i need to know the name (or at least figure out the pid somehow).
> How can i do this?

To put it simply: you cannot because there is no such thing as "the name"
of a D-Bus peer. A D-Bus always has one name automatically assigned by the
bus (the numerical form). Then it can request any (within reasonable
limits) number of names for itself.

On the one hand, some D-Bus peers have no name other than the numerical
name. This is typical for pure "client" D-Bus peers that do not expose any
service and hence do not need any name. On the other hand, some processes
expose multiple distinct D-Bus services, each with their own well-known
name, and so they register more than one name.

There are a bunch of requests you can send to the bus daemon itself to
query mappings. You can introspect the bus to figure those out...

Rémi Denis-Courmont

More information about the dbus mailing list