Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yabai: launchd.plist differences between default yabai file and nix-darwin #1226

Open
0rphee opened this issue Dec 16, 2024 · 1 comment
Open

Comments

@0rphee
Copy link

0rphee commented Dec 16, 2024

The launchd.plist file has several differences between the default yabai-generated file and the one created by nix-darwin. This makes debugging issues difficult, specially due to the lack of the StandardOutPath and StandardErrorPath keys.

With yabai-v7.1.5: com.koekeishiya.yabai.plist

Details

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.koekeishiya.yabai</string>
    <key>ProgramArguments</key>
    <array>
        <string>/run/current-system/sw/bin/yabai</string>
    </array>
    <key>EnvironmentVariables</key>
    <dict>
        <key>PATH</key>
        <string>......</string>
    </dict>
    <key>RunAtLoad</key>
    <true/>
    <key>KeepAlive</key>
    <dict>
        <key>SuccessfulExit</key>
 	     <false/>
 	     <key>Crashed</key>
 	     <true/>
    </dict>
    <key>StandardOutPath</key>
    <string>/tmp/yabai_user.out.log</string>
    <key>StandardErrorPath</key>
    <string>/tmp/yabai_user.err.log</string>
    <key>ProcessType</key>
    <string>Interactive</string>
    <key>Nice</key>
    <integer>-20</integer>
</dict>
</plist>

With nix-darwin:

Details

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>EnvironmentVariables</key>
	<dict>
		<key>PATH</key>
		<string>/nix/store/i0aw7glc5kagrx01gxbv3dnd0v2p13yx-yabai-7.1.5/bin:$HOME/.nix-profile/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin</string>
	</dict>
	<key>KeepAlive</key>
	<true/>
	<key>Label</key>
	<string>org.nixos.yabai</string>
	<key>ProgramArguments</key>
	<array>
		<string>/nix/store/i0aw7glc5kagrx01gxbv3dnd0v2p13yx-yabai-7.1.5/bin/yabai</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
</dict>
</plist>

@Samasaur1
Copy link
Contributor

#1231 will address this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants