shaunsingh / nix-darwin-dotfiles

Dotfiles managed via Nix-Darwin and Mk-Darwin-System, for schoolwork and kotlin, lua, and rust programming
391 stars 27 forks source link

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

Closed ldmsh closed 1 year ago

ldmsh commented 1 year ago

@shaunsingh thanks so much for creating this.

Don't suppose you've experienced this at all? Have created a new user with zero config and this error still persists.

services.yabai = {
#...
    enableScriptingAddition = true;
#...
}

The above seems to create a launchd agent at ~/Library/LaunchAgents/org.nixos.yabai.plist, which causes yabai: scripting-addition either failed to load or could not inject payload into Dock.app every 5s and the screen to flicker.

Have followed scripting addition configuration via yabai's wiki though no luck.

Setting enableScriptingAddition = false for now. Apologies if doing something dumb as new to Nix.

shaunsingh commented 1 year ago

I don't have the issue on my own machine, but I wouldn't be surprised if it was happening on yours, yabai is very finicky.

Looks like nixpkgs might bump yabai soon (https://github.com/NixOS/nixpkgs/pull/203504#issuecomment-1331342078) which should resolve this issue.

ldmsh commented 1 year ago

yabai-5_0_1 via Ivar's overlay resolved it indeed, thanks.

Missed Felix's border fix so much that I'ved rolled back to your implementation. Happy to wait