Re: kbluetooth

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)



---------------------------------------------------------------------
To unsubscribe, e-mail: trinity-devel-unsubscribe@xxxxxxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: trinity-devel-help@xxxxxxxxxxxxxxxxxxxxxxxxxx
Read list messages on the web archive: http://trinity-devel.pearsoncomputing.net/
Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting




[Index of Archives]     [Trinity Users]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [KDE]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux