1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-05 16:27:03 +00:00

services/yabai: Remove --check-sa and --install-sa flags

The --check-sa and --install-sa flags were removed in favor of
--load-sa as of version 5.0.0 of Yabai.

ee0137f37d/CHANGELOG.md (L83)
This commit is contained in:
Wael M. Nasreddine 2023-09-14 09:01:00 -07:00
parent 4496ab2662
commit 30311b6f90
No known key found for this signature in database
GPG key ID: 8EBD95DC147755A2

View file

@ -90,14 +90,7 @@ in
# TODO: [@cmacrae] Handle removal of yabai scripting additions
(mkIf (cfg.enableScriptingAddition) {
launchd.daemons.yabai-sa = {
script = ''
if [ ! $(${cfg.package}/bin/yabai --check-sa) ]; then
${cfg.package}/bin/yabai --install-sa
fi
${cfg.package}/bin/yabai --load-sa
'';
script = "${cfg.package}/bin/yabai --load-sa";
serviceConfig.RunAtLoad = true;
serviceConfig.KeepAlive.SuccessfulExit = false;
};