Kdeconnect DBUS
I’ve tested the DBUS interfaces for Kdeconnect (the system for connecting a KDE desktop to a phone or another computer). Unlike most DBUS interfaces it has a significant tree of interfaces so the busctl command to get the tree is important. Here’s the useful things I discovered:
# list basic interfaces for kdeconnect qdbus6 org.kde.kdeconnect.daemon /modules/kdeconnect # get tree of interfaces for kdeconnect busctl --user tree org.kde.kdeconnect.daemon # get list of devices qdbus6 --literal org.kde.kdeconnect.daemon /modules/kdeconnect org.kde.kdeconnect.daemon.deviceNames # list interfaces for a device (DEVID is a hex string from the above command) qdbus6 org.kde.kdeconnect.daemon /modules/kdeconnect/devices/$DEVID # get battery charge qdbus6 org.kde.kdeconnect.daemon /modules/kdeconnect/devices/$DEVID/battery org.kde.kdeconnect.device.battery.charge
Sending an SMS apparently requires using the QVariantList type which is more pain than I wanted so I tried the kdeconnect-cli command. Here’s a quick summary of how to use it:
# list devices kdeconnect-cli -l # send a SMS kdeconnect-cli -d $DEVID --send-sms "the message" --destination $NUMBER # find device (ring) kdeconnect-cli --ring -d $DEVID # send a notification message kdeconnect-cli --ping-msg "this is the message" -d $DEVID # unlock and lock screen (only works on Debian devices for me not Android devices) kdeconnect-cli --unlock -d $DEVID kdeconnect-cli --lock -d $DEVID
There doesn’t seem to be support for making phone calls via kdeconnect which is a significant omission. It’s a very common situation to want to call a number that’s listed on a web site or in some other data source that’s easier to access on a PC than on a phone. The clipboard could be used but that’s needless pain.