Hi I would like to launch my app each time user logs-in.
I added plist file to /Libray/LaunchAgents folder :
<?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>KeepAlive</key>
<false/>
<key> LaunchOnlyOnce</key>
<true/>
<key>OnDemand</key>
<false/>
<key>RunAtLoad</key>
<true/>
<key>Label</key>
<string>com.mycompany.myapp</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/mayapp.app/Contents/MacOS/myapp</string>
</array>
</dict>
</plist>
All looks OK, application is being loaded , however when I quit my app it's launch back by launchd service.
Which key shall I add/modify in my plist file to prevent constant relaunching of my application.
Thanks David