User-domain agents need the Background session type to bootstrap into user/501, and activation should fail rather than silently unloading services when launchctl bootstrap fails.
24 lines
No EOL
827 B
Text
24 lines
No EOL
827 B
Text
<?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>KeepAlive</key>
|
|
<true/>
|
|
<key>Label</key>
|
|
<string>org.nix-community.home.glance</string>
|
|
<key>LimitLoadToSessionType</key>
|
|
<string>Background</string>
|
|
<key>ProgramArguments</key>
|
|
<array>
|
|
<string>/bin/sh</string>
|
|
<string>-c</string>
|
|
<string>/bin/wait4path /nix/store && exec /nix/store/00000000000000000000000000000000-glance/bin/glance --config /home/hm-user/.config/glance/glance.yml</string>
|
|
</array>
|
|
<key>RunAtLoad</key>
|
|
<true/>
|
|
<key>StandardErrorPath</key>
|
|
<string>/home/hm-user/Library/Logs/glance.err</string>
|
|
<key>StandardOutPath</key>
|
|
<string>/home/hm-user/Library/Logs/glance.log</string>
|
|
</dict>
|
|
</plist> |