• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Helper tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Helper tool
      • From: Seth Willits <email@hidden>
  • Prev by Date: RunLoop in Helper Tool
  • Next by Date: Re: RunLoop in Helper Tool
  • Previous by thread: Re: Helper tool
  • Next by thread: Re: Helper tool
  • Index(es):
    • Date
    • Thread