linuxmint / blueberry

A Bluetooth configuration tool
GNU General Public License v3.0
171 stars 51 forks source link

Handle error from rfkill #94

Closed samtygier closed 4 years ago

samtygier commented 4 years ago

Fixes #88

In the case where /dev/rfkill does not exist rfkill will return false which triggers a backtrace in blueberry, which may then trigger a distro's bug reporting tool. This is common on virtual machines.

Instead handle the error. res gets set to an empty string, which the rest of the funtion interprets and having no adapter. This allows blueberry to launch with a window saying

"No Bluetooth adapters found"

samtygier commented 4 years ago

Thanks