I would like to detect paired devices programmatically on Debian 11. I
am trying method devices(Boolean onlyReachable, Boolean onlyPaired)
and also method deviceNames(Boolean onlyReachable, Boolean
onlyPaired), found in the GUI d-bus inspector.

The phone is now unpaired, according to the Android app and the Debian
GUI. kdeconnect-cli -a -l  prints "reachable" instead of "paired and
reachable".

However, devices() and deviceNames() return the phone for (False,
True) and all other 2-tuples of bool:

>>> import dbus
>>> session_bus = dbus.SessionBus()
>>> proxy = session_bus.get_object('org.kde.kdeconnect', '/modules/kdeconnect')
>>> org_kde_kdeconnect = dbus.Interface(proxy, 'org.kde.kdeconnect.daemon')
>>> org_kde_kdeconnect.devices(onlyReachable=False, onlyPaired=True)
dbus.Array([dbus.String('[snip]')], signature=dbus.Signature('s'))
>>> org_kde_kdeconnect.devices(onlyReachable=True, onlyPaired=False)
dbus.Array([dbus.String('[snip]')], signature=dbus.Signature('s'))


Is this expected (is the d-bus interface used correctly above) or
should this be reported to the Debian BTS or to upstream?


Thanks

Reply via email to