Re: Launch process as root from cocoa app
Re: Launch process as root from cocoa app
- Subject: Re: Launch process as root from cocoa app
- From: Kyle Sluder <email@hidden>
- Date: Mon, 25 Jan 2010 19:48:29 -0800
On Mon, Jan 25, 2010 at 7:23 PM, Jens Alfke <email@hidden> wrote:
> The OP wants to allow a button in the UI to start and stop the job. That's not something you can configure a plist for!
You configure the launchd job's plist to watch for a path and
create/remove that file in response to the UI action. This avoids the
entire mess of running launchctl with elevated privileges; instead you
only have to worry about running your own known code.
--Kyle Sluder
_______________________________________________
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