|
From: Leon B. <le...@ti...> - 2011-11-06 17:02:26
|
Hi,
I'm trying to set up a fuse fs that responds to dbus signals. So I set
up the dbus initialization stuff in fsinit():
def fsinit(self):
import dbus
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
self.bus = dbus.SessionBus()
But when I do it like above the bus doesn't respond to signals. If I
leave out the DBusGMainLoop I get this error:
RuntimeError: To make asynchronous calls, receive signals or
export objects, D-Bus connections must be attached to a main
loop by passing mainloop=... to the constructor or calling
dbus.set_default_main_loop(...)
How can I solve this issue? Is there a way to get to the fuse mainloop
so I can pass that to the dbus connection?
Thanks in advance!
Leon
|