• 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: Fri, 13 Sep 2013 23:15:02 +0700

On 13 Sep 2013, at 22:10, Charles Srstka <email@hidden> wrote:

> On Sep 13, 2013, at 10:09 AM, Charles Srstka <email@hidden> wrote:
>
>> On Sep 13, 2013, at 8:47 AM, "Gerriet M. Denkmann" <email@hidden> 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.

This I have done already (but thanks for the hint anyway), but I couldn't make sense of it. Thus my question here.

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: Kevin Meaney <email@hidden>
References: 
 >Helper tool (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Helper tool (From: Charles Srstka <email@hidden>)
 >Re: Helper tool (From: Charles Srstka <email@hidden>)

  • Prev by Date: Window controllers and memory leaks
  • Next by Date: Re: Window controllers and memory leaks
  • Previous by thread: Re: Helper tool
  • Next by thread: Re: Helper tool
  • Index(es):
    • Date
    • Thread