Python / C++ application D-Bus usage issues

Kip Warner kip at thevertigo.com
Mon Dec 17 21:10:17 PST 2012


On Mon, 2012-12-17 at 11:15 +0000, Krzysztof Konopko wrote:
> Hi Kip,
> 
> Indeed, it's an overkill *in your situation*. My remark is useful in
> general if you want your service to work nicely with Python applications.
> 
> As Thiago & others try to explain, in your specific case when you just
> need to send a signal from Python, you don't need that all proxy stuff.
> All you need is to be left in your code is:
> 
> message = SignalMessage(DBUS_OBJECT_PATH, DBUS_INTERFACE, "Ready")
> self._sessionBus.send_message(message)
> self._sessionBus.flush()
> 
> Simply delete the bit from your Python code that creates the proxy. You
> don't even seem to use it anywhere. If you will use it in the future,
> then implement Introspectable interface but from what you're saying so
> far that's not the plan.

Hey Kris. Thanks a lot for your help. Your answer is quite useful,
although my d-bus kung fu is still very weak. I guess what I need to do
is respond to the Introspect message with the XML string by the sounds
of it because if the C++ application emits signals then apparently it
needs to do this?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20121217/9909ae28/attachment.pgp>


More information about the dbus mailing list