> On Sep 13, 2013, at 6:47 AM, Gerriet M. Denkmann 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?). > > Yep. You asked it to. Which of the 3 options above triggers this behaviour?
> launchd launched it for you, and your app probably just sits waiting for > something to happen vs immediately acting on args and exiting when done. > > Delete them as Charles said. ;) See also my post one hour ago. >> Is there some other way to find out whether it is running? > > SMJobCopyDictionary(kSMDomainSystemLaunchd, …) > > There will be a PID entry if it's running Thanks a lot. I will check this out. Kind regards, Gerriet. _______________________________________________ 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