I am afraid I am missing something like python dbus.mainloop.tqt
for the kblueplugd
from python_tqt import qt
import dbus
import dbus.mainloop.qt <<<<<<< HERE
import distutils.spawn
kbtcmd = [ 'kbluetooth' ]
quitprogs = [ 'kdebluetooth', 'kbluemon', 'kinputwizard' ] #
FIXME: quit
kbluelock too?
app = qt.TQApplication(sys.argv)
if app.isSessionRestored():
sys.exit(1)
dbus.mainloop.qt.DBusQtMainLoop(set_as_default=True) <<<<<<< HERE
bus = dbus.SystemBus()
try:
manager =
dbus.Interface(bus.get_object('org.bluez', '/org/bluez'),
'org.bluez.Manager')
except:
print "Unable to connect to bluez."
sys.exit(1)