• 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: Agent Applications and launchd
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Agent Applications and launchd (From: Keith Alperin <email@hidden>)

  • Prev by Date: Re: KVO one-step listening but two-step notifying?
  • Next by Date: Re: Retaining 2D array values
  • Previous by thread: Re: Agent Applications and launchd
  • Next by thread: Re: Agent Applications and launchd
  • Index(es):
    • Date
    • Thread