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

Scripting Additions not working #415

Closed
d3rZauberer opened this issue Feb 18, 2020 · 5 comments
Closed

Scripting Additions not working #415

d3rZauberer opened this issue Feb 18, 2020 · 5 comments
Labels
help wanted Community help appreciated question Request for information or help, not an issue

Comments

@d3rZauberer
Copy link

I am trying to get yabai running on macOS 10.15.1 (Catalina). I installed version 2.3.0 via brew. I followed the steps from the wiki on installing the scripting additions, also when running csrutil status I get the output:

System Integrity Protection status: disabled.

Running sudo yabai --uninstall-sa and then reinstalling it again did not work either.

When I run sudo yabai --load-sa I get:

yabai: scripting-addition either failed to load or could not inject payload into Dock.app! Error: -10004

Also I cannot locate yabai.osax in my /System/Library/ScriptingAdditions folder.

Yabai seems to be running already as a service in the background, resizing windows, but not taking over the Dock.app.

Thank you very much already!

@koekeishiya
Copy link
Owner

koekeishiya commented Feb 18, 2020

So there are a number of things to start with here..

First of all, to clarify, did you disable SIP using the command specified in the wiki?
The output of csrutil status should look like the following on Catalina:
image

If yours look the same that part is fine, and you might've encountered something like #400, although that specific issue has been resolved. Note the following from the documentation:

Path is /System/Library/ScriptingAdditions on macOS High Sierra, and /Library/ScriptingAdditions on Mojave and newer.

So you want to check /Library/ScriptingAdditions on your system.

Edit:
There is no need to run yabai --load-sa as the root user, and you also don't really need to run that manually. When yabai starts, or if the Dock.app process is restarted, yabai will try to inject the scripting addition automatically.

@koekeishiya koekeishiya added help wanted Community help appreciated question Request for information or help, not an issue labels Feb 18, 2020
@d3rZauberer
Copy link
Author

The output of csrutil status is the exact same as in the screenshot you provided.

And yes, the file is actually located at /Library/ScriptingAdditions/yabai.osax (Sorry for that) :)

However, even after looking at #400, yabai seems to not be able to inject the scripting addition. Dock is restarting normally and not letting yabai take over. I ran umask 0000, installed scripting addition again, but it still isn't working properly.

@d3rZauberer
Copy link
Author

Update:

After updating macOS to 10.15.3 and reinstalling the scripting-additions, I get the notification from yabai about the payload version. The status bar does not display the items correctly and the default status bar from macOS is still running on top.

I still could not figure out why the Dock keeps running. I tried terminating it with killall Dock and pkill -x Dock, but it restarts immediatly after. The tiling mechanism however seems to be running fine and according to the configuration file.

@koekeishiya
Copy link
Owner

koekeishiya commented Feb 24, 2020 via email

@d3rZauberer
Copy link
Author

It seems like the update & restart made everything work.
Thanks for the quick responses and feedback, now I can go and dig through the config :) Already starting to love it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Community help appreciated question Request for information or help, not an issue
Projects
None yet
Development

No branches or pull requests

2 participants