• 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: Charles Srstka <email@hidden>
  • Date: Fri, 13 Sep 2013 10:09:25 -0500

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


_______________________________________________

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

  • Prev by Date: Helper tool
  • Next by Date: Re: Helper tool
  • Previous by thread: Helper tool
  • Next by thread: Re: Helper tool
  • Index(es):
    • Date
    • Thread