Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bluetoothctl crashes sway WM #141

Open
juleslink opened this issue Jul 19, 2024 · 3 comments
Open

bluetoothctl crashes sway WM #141

juleslink opened this issue Jul 19, 2024 · 3 comments

Comments

@juleslink
Copy link

juleslink commented Jul 19, 2024

Hey there,

i am a huge fan of networkmanger-dmenu and was very disappointed that it crashed my sway WM while not being called from a terminal (calling it through rofi or keyboard shortcuts).
If i call it from a terminal all is fine.

I am on Manjaro Sway.

I could track this down to your code around bluetoothctl.
No clue why this happens.
There is nothing special in the logs, sway just crashes.

But i made some changes to be able to choose between rfkill or bluetoothctl via the config.ini like

[bluetooth]
#rfkill or bluetoothctl (Default: rfkill)
helper = rfkill

Not sure if you like this, but leave it here for reference, maybe it helps someone else.

networkmanager_dmenu_patch.txt

Keep up the good work,
Best,
Jules

@juleslink juleslink changed the title bluetoothctl chrashs sway WM bluetoothctl crashes sway WM Jul 19, 2024
@firecat53
Copy link
Owner

Hmm, that's an odd failure! Sorry you were having issues!

It appears you basically want to skip all of the blutoothctl commands to prevent the crash?

Did you have bluetoothctl intsalled when it crashed?

Is rfkill present on your system?

When you say sway crashed, what do you mean? Did it freeze? Go back to the login screen? Restart?

@juleslink
Copy link
Author

It appears you basically want to skip all of the blutoothctl commands to prevent the crash?

Yes, exactly!

Did you have bluetoothctl intsalled when it crashed?

Yes bluetoothctl is installed when it crashes.

Is rfkill present on your system?

Yes rfkill is also present, i use it now to switch Bluetooth on and off through networkmanager-dmenu and it works fine.

When you say sway crashed, what do you mean? Did it freeze? Go back to the login screen? Restart?

I am back at the login screen of sway when it crashes.

I just double-checked all your Bluetooth commands form terminal.
Nothing triggers the crash, it just happens when not called from terminal.

Really clueless why this happens, so the only option for me is to disable the bluetoothctl part and only use rfkill.

@firecat53
Copy link
Owner

Sorry, I am unable to replicate this at all! Without any reports from other users, we might have to chalk this up to something odd about your particular system. You could try running the commands using Popen from the python REPL and see if you can trigger the crash.

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

No branches or pull requests

2 participants