A question about DBusMessage

Thiago Macieira thiago at kde.org
Wed Jan 21 23:42:44 PST 2009


Zheng, Huan wrote:
>I know how to get sender id from DBUSMessage, but don't know whether it
> is possible to get process id. Thanks a lot!

There's a method in the dbus-daemon that can be used to get the PID of a 
connection. Make a call to service org.freedesktop.DBus, path 
/org/freedesktop/DBus (in theory, but any path works), interface 
org.freedesktop.DBus, method GetConnectionUnixProcessID with the 
connection ID as the parameter.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20090122/56bcaa96/attachment.pgp 


More information about the dbus mailing list