name resolving of dbus-monitor output

Alban Crequy alban.crequy at collabora.co.uk
Fri Jul 16 06:08:22 PDT 2010


Le Fri, 16 Jul 2010 14:00:38 +0100,
Will Thompson <will.thompson at collabora.co.uk> a écrit :

> On 16/07/10 13:46, Sven 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?
> 
> Call org.freedesktop.DBus.GetConnectionUnixProcessID() on 
> /org/freedesktop/DBus on the service org.freedesktop.DBus, and pass
> it the bus name you're interested in.

Here is the command line for free :)

dbus-send --print-reply
--dest=org.freedesktop.DBus /org/freedesktop/DBus
org.freedesktop.DBus.GetConnectionUnixProcessID string::1.3

Also, d-feet can show you the command line of the process: write ":1.3"
in the filter, and the command line of the process is in the right
panel.

-- 
Alban


More information about the dbus mailing list