happiness (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) happiness

yabaiで「cannot focus space due to an error with the scripting-addition.」が起こったとき

環境

  • macOS Ventura 13.0.1
  • macbookair M1
  • yabai-v5.0.6

公式documentの言及部分

Installing yabai (latest release) · koekeishiya/yabai Wiki · GitHub

問題

yabaiで.yabaircに

yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
 sudo yabai --load-sa

と書いてあるのに、

terminalから

yabai -m space --focus Chat

すると

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

となる

解決方法

hint github.com

terminalからsudo yabai --load-sa してyabai --restart-service

したら直った。

しかし適当な直し方なので、またmac起動したら発生しそうな気がする。