Signal subscriptions dead on upgrade to Ubuntu Raring (13.04)

Thiago Macieira thiago at kde.org
Fri May 10 15:55:17 PDT 2013


On sexta-feira, 10 de maio de 2013 14.41.51, Kip Warner wrote:
>         signal sender=:1.313 ->
>         dest=com.cartesiantheatre.VikingExtractorService serial=5
>         path=/com/cartesiantheatre/VikingExtractorObject;
>         interface=com.cartesiantheatre.VikingExtractorInterface;
>         member=Notification
>            string "Indexing mission data, please wait..."
>         
>         signal sender=:1.313 ->
>         dest=com.cartesiantheatre.VikingExtractorService serial=6
>         path=/com/cartesiantheatre/VikingExtractorObject;
>         interface=com.cartesiantheatre.VikingExtractorInterface;
>         member=Notification

These signals have a destination set on them. There's no way that this match 
rule will work:

        "type='signal',sender='com.cartesiantheatre.VikingExtractorService',interface='com.cartesiantheatre.VikingExtractorInterface'"

In order to match, it requires that the sender be the connection that owns the 
service name "com.cartesiantheatre.VikingExtractorService", which is also the 
destination name.

If the program that wants to receive this signal has the name, the rule will 
not match (unless sender and receiver are the same).

If :1.313 owns that name, the rule would match. But since the message had a 
destination specified, only the actual destination can receive it without 
adding "eavesdrop=true" to the rule.

The "eavesdrop=true" is a change in behaviour between D-Bus 1.4 and 1.6, 
clarifying what is eavesdropping and what isn't.

-- 
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/20130510/13ca081f/attachment.pgp>


More information about the dbus mailing list