On Sep 13, 2013, at 10:09 AM, Charles Srstka <cocoa...@charlessoft.com> wrote:
> On Sep 13, 2013, at 8:47 AM, "Gerriet M. Denkmann" <gerr...@mdenkmann.de> > wrote: > >> I have a helper tool (started via SMJobBless from the main app). >> >> Its launchd.plist contains (no idea why, probably I copied this from some >> sample code): >> LaunchOnlyOnce = YES >> RunAtLoad = YES >> OnDemand = NO >> >> The problem: it runs even when the the main app has never asked it to run. >> Obviously it gets started automatically on login (or even directly after >> reboot?). > > The problem, obviously, that you don't want those options. Just get rid of > all of them and the default values should be fine for what you want to do. My > launchd.plist just looks like this: > > <?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>label</key> > <string>com.foo.MyGreatApp</string> > <key>MachServices</key> > <dict> > <key>com.foo.MyGreatApp.helper</key> > <true/> > </dict> > <key>ProgramArguments</key> > <array> > > <string>/Library/PrivilegedHelperTools/com.foo.MyGreatApp.helper</string> > </array> > </dict> > </plist> > > Charles I should add that if you want to see what all the available options are for launchd.plist, you can get a nice description of them by typing "man launchd.plist" in the Terminal. Charles _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com