<div class="gmail_quote">I apologize in advance if this sounds like a rant.<br><br>First, up front, my question: Is there any way at all to use dbus and listen for signals in Python *without* using glib?<br><br>I keep finding discussions dating to nearly three years ago about this question[1]. Occasionally I see a post hinting that something will be implemented in the future, but shortly after the thread is dead. Has there been any progress? I've searched high and low for documentation and have gone through the code, but I can't find anything. Other than DBusGMainLoop, there has been nothing. Some of the code and docs suggest that something could be done with NativeMainLoop, but I quickly found that it isn't subclassable or usable itself. To top it off, dbus.set_default_main_loop only wants an instance of NativeMainLoop. <br>
<br>Another option I see discussed is to just put the glib MainLoop in a thread and set it off to the side to process. This would be feasible, but it doesn't work. Calling dbus.mainloop.glib.threads_init results in:<br>
** ERROR **: g_thread_init() must be called before dbus_threads_init()<br>g_thread_init is not exposed anywhere in the glib/dbus Python API (if it is, it's not working).<br><br>Has anybody found a solution to this age-old problem?<br clear="all">
<br>Jacob<br><br>[1] <a href="http://lists.freedesktop.org/archives/dbus/2006-July/005218.html" target="_blank">http://lists.freedesktop.org/archives/dbus/2006-July/005218.html</a><br>
</div><br>