gnome-bluetooth-quick-connect
gnome-bluetooth-quick-connect copied to clipboard
Quick code review
Here are some comments about the code in the repository as it is today:
- https://github.com/bjarosze/gnome-bluetooth-quick-connect/blob/master/power.js is unnecessary, the battery information is already exported through the
battery-type,battery-percentageandbattery-levelproperties in the BluetoothDevice object. There are also bug fixes in upower to export the battery information on even more devices. - connect is available through
BluetoothClient.connect_service() - disconnect isn't made available, please file a new bug against gnome-bluetooth upstream
All this code is worth getting merged upstream, if you want. Happy to help if you encounter any problems on the gnome-bluetooth side.
FYI https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2501
disconnect isn't made available, please file a new bug against gnome-bluetooth upstream
bluetooth_client_connect_service() with connect set to False does that, :facepalm: