Python / C++ application D-Bus usage issues
Kalle Vahlman
kalle.vahlman at gmail.com
Mon Dec 17 00:42:58 PST 2012
2012/12/17 Tanu Kaskinen <tanuk at iki.fi>:
> On Mon, 2012-12-17 at 10:08 +0200, Kalle Vahlman wrote:
>> 2012/12/17 Kip Warner <kip at thevertigo.com>:
>> However, I don't actually see this
>> > message ever received in the C++ application.
>>
>> In the code you posted you specifically add a match only for signals,
>> so that would most likely be the reason.
>>
>> Add a match for
>> "type='method_call',interface='org.freedesktop.DBus.Introspectable',member='Introspect',path='/your/path'"
>> and you probably should receive it.
>
> Method calls are always delivered, there's no need to register match
> rules for them. The original code does nothing if the message type is
> signal, so that would explain why it looks like the Introspect message
> isn't received.
Oh right, with destination field set the match rules are not relevant.
And I naturally assumed the original code would be modified to check
the message type and print something to indicate if the message would
be received...
--
Kalle Vahlman, zuh at iki.fi
Powered by http://movial.com
Interesting stuff at http://sandbox.movial.com
More information about the dbus
mailing list