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

Cannot load Scripting Addition on Macbook Air M1 2020 #1559

Closed
DragonDev07 opened this issue Dec 11, 2022 · 6 comments
Closed

Cannot load Scripting Addition on Macbook Air M1 2020 #1559

DragonDev07 opened this issue Dec 11, 2022 · 6 comments

Comments

@DragonDev07
Copy link

Hi! Im having an issue when trying to run the sudo yabai --load-sa command, where I get the following error:

could not spawn remote thread: (os/kern) invalid argument
yabai: scripting-addition failed to inject payload into Dock.app!

I've looked into fixing this through this issue: #1234, but none of the solutions that were provided worked (Changing boot args, fully disabling SIP, Uninstalling and Reinstalling SA, etc.)

Does anyone have another way to try and fix this issue?

@aiguofer
Copy link

aiguofer commented Dec 12, 2022

Are you running off HEAD (brew install koekeishiya/formulae/yabai --HEAD)? Ventura 13.0 support isn't officially released yet but it's working well for me form master

@DragonDev07
Copy link
Author

Are you running off HEAD (brew install koekeishiya/formulae/yabai --HEAD)? Ventura 13.0 support isn't officially released yet but it's working well for me form master

I just tried it, and it doesn't seem to work still. I also get spammed by yabai wanting to be allowed with accessibility to control the computer, even though it is already allowed to. When I try to load SA it is the same error as before.

@karlicoss
Copy link

karlicoss commented Dec 12, 2022

@DragonDev07 had the same issue, I think it's because you need to use the actual yabai binary (instead of just output of which yabai, which is a symlink). So whatever is the output of $(brew --prefix yabai)/bin/yabai basically.

Seems necessary both during self-sign step (as mentioned here), and when you add it to the accessibility settings. I'll try to update the wiki to mention that.

@DragonDev07
Copy link
Author

@karlicoss I tried this, and it still doesn't work, giving the same error.

@nuynait
Copy link

nuynait commented Dec 16, 2022

I have this issue as well.

yabai: scripting-addition failed to inject payload into Dock.app! when doing sudo yabai --load-sa

@koekeishiya
Copy link
Owner

Follow the wiki instructions exactly as they are written, and it should work (does on both my machines anyway).
If you are still having issues, read this comment for instructions to debug your setup #1515 (comment)

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

5 participants