Re: Helper tool
Re: Helper tool
- Subject: Re: Helper tool
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sun, 15 Sep 2013 16:02:44 +0700
> 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 (email@hidden)
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:
This email sent to email@hidden