asmvik / asmvik/yabai

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

Open
#2,299 4 comments 20 reactions 0 assignees View on GitHub
Dominant language
C
Stars
29.6k
Forks
750
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce `sudo yabai --load-sa` on macOS 13.4 with an M2 Pro and compare it with the reported macOS 12.7.1 Intel behavior. Inspect the wiki instructions and `/etc/sudoers`, including the `TERMINFO` workaround, then determine whether a yabai or documentation change is needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos
Domain
operating-systems, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.