FelixKratz / dotfiles

My personal macOS configuration
GNU General Public License v3.0
929 stars 92 forks source link

Cannot focus space due to an error with the scripting-addition #15

Closed braun-steven closed 1 year ago

braun-steven commented 1 year ago

I've just switched from koekeishiya/yabai to your fork. It seems that the scripting-additions don't work though. I've uninstalled yabai and installed your fork with

brew tap FelixKratz/formulae
brew install --HEAD felixkratz/formulae/fyabai

I've put the following in yabairc

launchctl unload -F /System/Library/LaunchAgents/com.apple.WindowManager.plist > /dev/null 2>&1 &
sudo yabai --load-sa

and ran

echo "Add sudoer manually:\n '$(whoami) ALL = (root) NOPASSWD: sha256:$(shasum -a 256 $(which yabai) | awk "{print \$1;}") $(which yabai) --load-sa' to '/private/etc/sudoers.d/yabai'"

to update /private/etc/sudoers.d/yabai accordingly. Then restarted the system just to be safe.

Running a space focus change results in:

$ yabai -m space --focus 3
cannot focus space due to an error with the scripting-addition.

Do you have any idea where I can start debugging?

Relevant files

Edit:

FelixKratz commented 1 year ago

Try: sudo yabai --uninstall-sa before uninstalling yabai and installing fyabai. After installing fyabai try sudo yabai --load-sa

braun-steven commented 1 year ago

This resolved the issue, thanks!