LnL7 / nix-darwin

nix modules for darwin
MIT License
3.19k stars 456 forks source link

Yabi Scripting Addition fails to inject into Dock.app #945

Closed JPyke3 closed 6 months ago

JPyke3 commented 6 months ago

I have a pretty minimal Config for Yabai, and it seems the scripting addition isn't working:

  services.yabai = {
    enable = true;
    enableScriptingAddition = true;
    config = {
      layout = "bsp";
    };
  };

If I run a:

yabai -m space --focus next

I get the follwing:

cannot focus space due to an error with the scripting-addition.

I currently have SIP disabled:

❯ csrutil status                                                                                                                  
System Integrity Protection status: disabled.

If I try to manually load the Scripting Addition it fails to inject into Dock.app:

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

Have I missed something with my config or is the Scripting Addition not working at the moment? I am still relatively new to nix-darwin so I can totally forsee that I have overlooked something here. Any help would be greatly appreciated!

❯ yabai --version                                                                                                                 
yabai-v6.0.1
JPyke3 commented 6 months ago

I think this may have come down to my Yabai version being out of date, after pushing to unstable it seems to work flawlessly.