How to know the application owned a bus name

Will Thompson will.thompson at collabora.co.uk
Tue Aug 4 02:56:14 PDT 2009


Jeff Cai wrote:
> I'm using dbus-monitor to look at messages among applications. But some
> messages have bus names like ":1.7" without knowing which application
> owns them. Is there any tool help to get the owner?

You can call org.freedesktop.DBus.GetConnectionUnixProcessID(":1.7") on
the daemon to get the pid of the application owning the name ":1.7".

That method should probably be documented in the spec...

-- 
Will

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.freedesktop.org/archives/dbus/attachments/20090804/18165dd4/attachment.pgp 


More information about the dbus mailing list