a question about org.freedesktop.DBus.Hello

Thiago Macieira thiago at kde.org
Fri Apr 26 23:23:04 PDT 2013

On sexta-feira, 26 de abril de 2013 18.44.43, Cifer Lee wrote:
> excuse me, does the org.freedesktop.DBus.Hello really get the unique name?
>  I opened the dbus-monitor and grabbed such a message:
>  method call sender=:1.112 -> dest=org.freedesktop.DBus serial=1
> path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello
> note the sender=:1.112    and  the member=Hello
>  so, when application call Hello method, it has already got an unique name
> :1.112
>  isn't it?

As I tried to explain on IRC, with several hours between messages...

You're not seeing the contents of the actual message that the application 
sent. You're seeing the contents of the message that dbus-monitor received. 
There's an important difference there: dbus-daemon received the message and 
processed it.

One of the things that the bus daemon does is that it adds the sender field.

You also asked how the daemon knew what the connection name was. It knows 
because the daemon is the entity assigning names in the first place. It knows 
because it came up with that name.

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130426/0484a6f4/attachment.pgp>

More information about the dbus mailing list