Files

57 lines
1.6 KiB
XML

<?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">
<!--
Template rendered by LaunchdService.renderPlist(executablePath:arguments:).
Placeholders: {{LABEL}}, {{PROGRAM}}, {{ARGUMENTS}}, {{STDOUT_PATH}}, {{STDERR_PATH}}
This is a LaunchAgent — it MUST be installed to ~/Library/LaunchAgents and run
in the logged-in user's GUI session, never to /Library/LaunchDaemons.
Virtualization.framework needs a GUI session, and macOS 15+ additionally
refuses to start a VM unless login.keychain is unlocked, which only happens
after a graphical login. Configure the host for automatic login.
{{PROGRAM}} must point at the executable inside the signed .app bundle; the
com.apple.security.virtualization entitlement does not survive on a bare
binary copied out of it.
-->
<plist version="1.0">
<dict>
<key>Label</key>
<string>{{LABEL}}</string>
<key>ProgramArguments</key>
<array>
<string>{{PROGRAM}}</string>
{{ARGUMENTS}}
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<!-- Back off rather than spin if the daemon exits immediately at startup. -->
<key>ThrottleInterval</key>
<integer>30</integer>
<key>ProcessType</key>
<string>Interactive</string>
<key>StandardOutPath</key>
<string>{{STDOUT_PATH}}</string>
<key>StandardErrorPath</key>
<string>{{STDERR_PATH}}</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</dict>
</dict>
</plist>