L'elenco delle proprietà è di proprietà di root? Se non lo è, non viene caricato al login anche se launchctl load
(senza sudo) lo caricherà.
$ sudo launchctl load /Library/LaunchAgents/test.plist
launchctl: Dubious ownership on file (skipping): /Library/LaunchAgents/test.plist
nothing found to load
$ sudo chown root /Library/LaunchAgents/test.plist
$ sudo launchctl load /Library/LaunchAgents/test.plist
$
Se il programma deve essere eseguito quando viene caricato l'elenco di proprietà, imposta RunAtLoad su true:
<key>RunAtLoad</key>
<true/>
Inoltre puoi normalmente usare / Library / LaunchAgents / invece di / System / Library / LaunchAgents /. Da man launchd
:
~/Library/LaunchAgents Per-user agents provided by the user.
/Library/LaunchAgents Per-user agents provided by the administrator.
/Library/LaunchDaemons System-wide daemons provided by the administrator.
/System/Library/LaunchAgents Per-user agents provided by Mac OS X.
/System/Library/LaunchDaemons System-wide daemons provided by Mac OS X.