[python-dbus] Cannot connect to both system and session buses in same program
Phil Thompson
phil at riverbankcomputing.co.uk
Wed Dec 19 08:35:51 PST 2007
On Sunday 16 December 2007, Simon McVittie wrote:
> On Sat, 15 Dec 2007 at 22:37:32 -0800, dwelch91 wrote:
> > I'm playing around with a little test dbus/PyQt4 python script, and have
> > run into an issue... I am trying to accomplish two things in this script:
> > 1) receive signals from the system bus, and 2) export a callable object
> > on the session bus. When I run my little test script, only the last of
> > these 2 things that I setup work.
>
> Using the GLib main loop I'm able to receive signals from both buses at the
> same time; using the Qt main loop I'm not. It sounds as though the Qt D-Bus
> main loop adaptor (which is in fact part of pyqt) doesn't support more than
> one bus at the same time. Please file this as a bug against PyQt. It may
> help to attach my signal listener code, which is about the simplest
> possible test case for this.
This is fixed in tonight's PyQt snapshot. Thanks for the test code.
Phil
More information about the dbus
mailing list