Skip to content

Handle error from rfkill#94

Merged
clefebvre merged 1 commit into
linuxmint:masterfrom
samtygier:fix-88
Dec 10, 2019
Merged

Handle error from rfkill#94
clefebvre merged 1 commit into
linuxmint:masterfrom
samtygier:fix-88

Conversation

@samtygier

Copy link
Copy Markdown
Contributor

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"

Fixes linuxmint#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"
@clefebvre clefebvre merged commit c6eb801 into linuxmint:master Dec 10, 2019
@samtygier samtygier deleted the fix-88 branch December 10, 2019 19:04
@samtygier

Copy link
Copy Markdown
Contributor Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception when rfkill fails due to /dev/rfkill missing

2 participants