i3status-rust icon indicating copy to clipboard operation
i3status-rust copied to clipboard

kdeconnect: choose first available device

Open marzzzello opened this issue 3 years ago • 5 comments

When I don't specify a device_id in the kdeconnect block it doesn't choose the first device paired and reachable.

kdeconnect-cli --list-available shows one device. When I use the id from there and set it as device_id it works.

kdeconnect-cli --list-devices shows 7 paired devices but only the 5. device is paired and reachable

marzzzello avatar Sep 04 '22 16:09 marzzzello

it doesn't choose the first device paired and reachable.

Yes it chooses the first device, connected or not. But so does v0.22, so I don't think this issue is v0.30 specific.

MaxVerevkin avatar Sep 08 '22 12:09 MaxVerevkin

In v0.22 it was also buggy but sometimes it worked. I didn't look more into it. But it would be nice if in the future the first available device is chosen instead of some other paired device

marzzzello avatar Sep 09 '22 09:09 marzzzello

Patches welcome :)

ammgws avatar Sep 09 '22 10:09 ammgws

Not sure if this is a "good first issue" though xD. I'd imagine properly implementing this being as hard as implementing missing battery support for UPower...

By "properly" I mean: handle the case when there are no connected devices (only paired), wait until some device becomes reachable, rescan when the current device becomes disconnected, etc. Although maybe I'm overthinking this.

MaxVerevkin avatar Sep 09 '22 10:09 MaxVerevkin

I actually wasn't thinking that far ahead :laughing:

ammgws avatar Sep 10 '22 08:09 ammgws