mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-13 18:28:50 +01:00
try exception on bluez dbus init
This commit is contained in:
parent
efd9459ab3
commit
5e29592572
@ -46,6 +46,7 @@ def setup_dbus(force=True):
|
||||
|
||||
|
||||
### BlueZ
|
||||
try:
|
||||
proxy_obj = bus.get_object("org.bluez", "/")
|
||||
manager = dbus.Interface(proxy_obj,"org.freedesktop.DBus.ObjectManager")
|
||||
objects = manager.GetManagedObjects()
|
||||
@ -56,6 +57,8 @@ def setup_dbus(force=True):
|
||||
|
||||
proxy_obj = bus.get_object("org.bluez", "/org/bluez/hci0")
|
||||
adapter = dbus.Interface(proxy_obj, "org.bluez.Adapter1")
|
||||
except Exception as e:
|
||||
print(str(e))
|
||||
|
||||
if not daemon:
|
||||
print("Error connecting to wicd via D-Bus")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user