How to know the application owned a bus name
Jeff Cai
Jeff.Cai at Sun.COM
Tue Aug 4 03:02:52 PDT 2009
Will,
Thanks.
Is there any script like 'dbus-send' doing that?
Jeff
On Tue, 2009-08-04 at 10:56 +0100, Will Thompson wrote:
> 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...
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
--
Jeff Cai <jeff.cai at sun.com>
More information about the dbus
mailing list