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.
26 lines
No EOL
1,011 B
Text
26 lines
No EOL
1,011 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.proton-pass-agent</string>
|
|
<key>LimitLoadToSessionType</key>
|
|
<string>Background</string>
|
|
<key>ProcessType</key>
|
|
<string>Background</string>
|
|
<key>ProgramArguments</key>
|
|
<array>
|
|
<string>/bin/sh</string>
|
|
<string>-c</string>
|
|
<string>/bin/wait4path /nix/store && exec @bash-interactive@/bin/bash -c '@proton-pass-cli@/bin/pass-cli ssh-agent start --socket-path $(@system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/proton-pass-agent/socket'</string>
|
|
</array>
|
|
<key>RunAtLoad</key>
|
|
<true/>
|
|
<key>StandardErrorPath</key>
|
|
<string>/home/hm-user/Library/Logs/Proton Pass CLI/ssh-agent-stderr.log</string>
|
|
<key>StandardOutPath</key>
|
|
<string>/home/hm-user/Library/Logs/Proton Pass CLI/ssh-agent-stdout.log</string>
|
|
</dict>
|
|
</plist> |