-
-
Notifications
You must be signed in to change notification settings - Fork 630
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
scripting-addition failed to inject #1158
Comments
Hey! I had this very problem and just solved it. When you add the line to the visudo yabai file, replace the path from yabai to the output of |
I am afraid that we must have different problems. Your problem seems to be that you were calling the wrong |
@SichangHe Have you taken a look at the #1054 issue yet? I had the same issues and error messages (I'm on M1 12.2.1) but managed to solve it with some commands. Check out this code block. Hopefully that can solve your issue (this command |
After executing the code in the code block you mentioned (copied below), I was able to focus next window ✌️ sudo nvram boot-args=-arm64e_preview_abi
# reboot
sudo yabai --uninstall-sa
sudo yabai --install-sa
sudo yabai --load-sa It seems that, for M1, sudo nvram boot-args=-arm64e_preview_abi is needed for the script addition to work. which is not mentioned in the installation part of the wiki. I will suggest adding the code to the wiki |
I tried Automatically load scripting addition on startup and it does not work upon reboot $ yabai -m space --focus next
yabai-msg: failed to connect to socket.. After quitting Finder and opening it again, which supposedly trigger the script addition to load again, it becomes $ yabai -m space --focus next
cannot focus space due to an error with the scripting-addition. It works, however, if I manually do sudo yabai --load-sa what I did according to Automatically load scripting addition on startupsudo visudo -f /private/etc/sudoers.d/yabai add this line to the opened file
add these two lines to sudo /opt/homebrew/bin/yabai --load-sa
yabai -m signal --add event=dock_did_restart action="sudo /opt/homebrew/bin/yabai --load-sa" |
Hi @SichangHe
It is in fact mentioned in the wiki, though a bit lower down. Check this page.
Are you running yabai manually or via Your |
I see it now. I missed it because I already disabled SIP before I started following the wiki and I skipped the SIP part.
I use
I rebooted twice.
You are right about this. |
Interesting, I figured that brew ought to have started yabai, so you wouldn't need to quit Finder (or pkill Dock). Does yabai work now without manually killing Finder? |
I killed and restarted Finder to trigger this in the yabai -m signal --add event=dock_did_restart action="sudo /opt/homebrew/bin/yabai --load-sa"
|
Since the topic of this issue, scripting-addition failed to inject, is solved by this. |
On Macos Ventura, I try all the ways but it still failed. |
@palteksolution, the Ventura scripting addition was just fixed in this commit, but it's not released yet: 206c0d6 brew unlink yabai
brew install yabai --head
sudo yabai --load-sa Don't forget to update your sudoers config with the new sha hash of yabai binary, though. |
scripting-addition failed to inject
$ yabai -m space --focus next cannot focus space due to an error with the scripting-addition. $ sudo yabai --load-sa Password: yabai: scripting-addition failed to inject payload into Dock.app!
version
yabai-v4.0.0
macOS 12.01
M1 apple silicon
SIP is disabled
same problem from others
this is migrated from comments on #787
@alephpt and @rublev has the problem, but on macOS 12.2
The text was updated successfully, but these errors were encountered: