vegardinho / alfred_bluetooth_controller

Alfred workflow for managing bluetooth settings and -connections
MIT License
95 stars 7 forks source link

Btc not working on Mac Sonoma #37

Closed jamie9090 closed 7 months ago

jamie9090 commented 8 months ago

Was loving this workflow, but now in Mac Sonoma, BT controls aren't working anymore - just no devices are showing up! Straight to fall back.

vegardinho commented 8 months ago

I can only reproduce the error inside the alfred environment, so there might be a bug with Alfred. It works when I run return_device_json.py manually. If anyone has any suggestions, feel free to try and fix the problem or hit me up. I'll paste the error I get in Alfred:


    main()
  File "/Users/<username>/Alfred.alfredpreferences/workflows/user.workflow.8BEDA4A2-A978-46D5-A9A3-05A8EDCD61C7/./scripts/return_device_json.py", line 39, in main
    js_bytes = check_output(cmd_args)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['./blueutil', '--format', 'json', '--paired']' died with <Signals.SIGABRT: 6>.```
n-eagle-eye commented 8 months ago

Hello guys, I have the same issue, which happened after updating to Sonoma. I wonder if there is any chance of getting this fixed.

tdrayson commented 7 months ago

Came here to see if there was a fix for this workflow for Sonoma, after some digging, I found a closed issue which explained how to get it working - https://github.com/vegardinho/alfred_bluetooth_controller/issues/36

Solution:

Add the bluetooth permission to Alfred in System setting -> security -> bluetooth.

Hope this helps 😃

vegardinho commented 7 months ago

Thanks, @tdrayson! I think I discarded the issue because it was closed right after it was opened, and I just assumed it was a non-issue. Will update README.

vegardinho commented 7 months ago

Added to README 7539afc40b3daea3e5e3fdb8c9b56cfd8cee5ba8.