firecat53 / networkmanager-dmenu

Control NetworkManager via dmenu
MIT License
783 stars 74 forks source link

Check if bluetoothd is running before executing bluetoothctl #132

Closed itshog closed 6 months ago

itshog commented 7 months ago

This adds an extra check before calling bluetoothctl, making sure that bluetoothd is running so the command doesn't hang.

Maybe there are better ways to perform this check, so let me know if the code could be improved (actually, this is my first pull request ever, so let me know if I'm doing something wrong).

Fixes #131

firecat53 commented 6 months ago

Thanks!