yabai: cannot focus space due to an error with the scripting-addition
macOS version 11.1
csrutil status output is System Integrity Protection status: disabled
already tried reinstall scripting-addition sudo yabai --uninstall-sa && sudo yabai --install-sa
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 5
- Comments: 25 (2 by maintainers)
Still seeing this issue on Ventura 13.2.1:
yabai-v5.0.2& SIP disabled (only need the ability to focus spaces that are created manually).yabai-certas per instructions in the wiki/usr/local/binas per the wiki instructions. Codesigned yabai here instead:/opt/brew/bin/yabai/and/opt/brew/Cellar/yabai/HEAD-147b356/bin/yabaisince there was nothing in the local bin.Issue:
Moving windows to open spaces is working however.
Is there anything wrong here, or something else that I can try? Please let me know.
After
sudo yabai --install-sa, did you runsudo yabai --load-samanually? If not, try to run it.I encountered this error after running a
brew upgrade. Re-checking the output ofshasum -a 256 $(which yabai)showed that a new sha256 hash had been generated. Updating/private/etc/sudoers.d/yabaito replace the old sha256 with it fixed this.I’m getting “cannot focus space due to an error with the scripting-addition” on Ventura.
same problem ^ but on Monterey 12.2
For anyone who comes along, try running
sudo yabai --load-sa. For later versions of macOS this should work.I am facing the same issue:
Apple Silicon Ventura 13.5 yabai-v5.0.6 (installed from brew) SIP status:
It’s fixed in the development version. https://github.com/koekeishiya/yabai/commit/206c0d6968210f48363f206526760e5750810a61 with https://github.com/koekeishiya/yabai/issues/1297 as context.
You can install the development version by following the wiki. https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(from-HEAD). You’ll be asked by homebrew to unlink the previous yabai, but after that and following the instructions on the wiki it works like a charm again. Don’t forget to update the
sha256for the new binary.may be you should use
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" sudo yabai --load-sain https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#configure-scripting-addition says
I still have this issue (MAC os 11.7.10) with SIP disabled.
sudo yabai --load-sadoesn’t fix it.This solved it for me: updating the sha256 hash in the sudoers file for
yabaito match the latest installed binary.https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#configure-scripting-addition
Updated wiki.
Should this case be also listed in the wiki?