koekeishiya / yabai

A tiling window manager for macOS based on binary space partitioning
MIT License
22.48k stars 630 forks source link

sudo: sorry, you are not allowed to set the following environment variables: TERMINFO #2299

Open lokxii opened 1 month ago

lokxii commented 1 month ago

This issue is opened for people who may encounter the same problem in future.

I'm using MacOS 13.4 on M2 Pro

I followed the instructions in the wiki pages to disable SIP and install yabai. When I run sudo yabai --load-sa, I got the error in title.

I solved by running sudo visudo /etc/sudoers and add the line

Defaults    env_keep += "TERMINFO"

One thing to note that when I install yabai on MacOS 12.7.1 (Intel), I didn't have to do this.

Bellavene commented 1 month ago

I never had seen that type of error on M machines. Yabai is installing fine.