How to know the application owned a bus name
Will Thompson
will.thompson at collabora.co.uk
Tue Aug 4 03:31:32 PDT 2009
Jeff Cai wrote:
> Is there any script like 'dbus-send' doing that?
You can use dbus-send, sure:
% dbus-send
Usage: dbus-send [--help] [--system | --session | --address=ADDRESS]
[--dest=NAME] [--type=TYPE] [--print-reply=(literal)]
[--reply-timeout=MSEC] <destination object path> <message name>
[contents ...]
% dbus-send --dest=org.freedesktop.DBus --print-reply
/org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID
string:':1.40'
method return sender=org.freedesktop.DBus -> dest=:1.725 reply_serial=2
uint32 1943
% cat /proc/1943/cmdline
/usr/lib/telepathy/telepathy-salut
--
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/46de4342/attachment.pgp
More information about the dbus
mailing list