Re: Agent Applications and launchd
Re: Agent Applications and launchd
- Subject: Re: Agent Applications and launchd
- From: Finlay Dobbie <email@hidden>
- Date: Mon, 2 Jan 2006 19:00:14 +0000
On 02/01/06, Keith Alperin <email@hidden> wrote:
> Oy! So we're back to the beginning. I'd like to use launchd, if for
> no other reason than for the pedagogical value. My original post was
> about how I couldn't figure out the command to use in my launchd
> plist file.
As I said, there are issues with LaunchAgents in Tiger. I have
received clarification from the engineer responsible for launchd:
> LaunchAgents don't really work as expected in Tiger, mostly due to
> Mach bootstrap related issues. Effectively, this makes LaunchAgents
> per-user jobs and not per-session jobs.
The recommendation is that you continue to use login items on Tiger,
which also has the added bonus of working on Panther and earlier.
You should not directly modify loginwindow's property list from
underneath it. That is relying on the implementation of how
loginwindow stores its representation of login items, which may change
in a future release, and will not necessarily update everyone who
needs to know (for example, the list of login items in System
Preferences).
The supported, recommended way of programmatically adding/removing
login items is the approach detailed in the LoginitemsAE sample code.
I don't see what the issue is here. You just add LoginitemsAE.[hc] to
your project, and then you have a few functions which will Do The
Right Thing(tm).
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden