• 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: making an installed application run at startup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: making an installed application run at startup


  • Subject: Re: making an installed application run at startup
  • From: Jason Proctor <email@hidden>
  • Date: Tue, 13 Jan 2009 16:30:30 -0800

hey Karl,

thanks for your detailed informative response.

I would be really careful about doing things like this. There are three reasons for this:

all the scenarios you describe happen, i'm sure. however the most common scenario for our application is, by far, a user sitting at home doing a local install affecting the environment of the user who is currently logged in.


If you absolutely have to have it, then you probably should look into writing yourself into /Library/Preferences/loginwindow.plist, namely inside the AutoLaunchedApplicationDictionary item (it should be an array). It you can't justify putting yourself in that file, then you should not have your installer do this.

as i understand it, writing to /Library/Preferences/loginwindow.plist would activate this for all users. if a machine is shared between users, then i want the run-at-login component to run only for those users who have run the installer.


i will have time to revisit this in the future but for right now i have to go with the simple solution for the most common scenario.

all this could have been avoided by a checkbox in PackageMaker. then the Installer could ask the user whether it's OK to do it, etc. this is a simple requirement that has been massively overcomplicated -- IMHO.

regards
j

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: making an installed application run at startup
      • From: Greg Neagle <email@hidden>
References: 
 >Re: making an installed application run at startup (From: Jason Proctor <email@hidden>)
 >Re: making an installed application run at startup (From: Karl Kuehn <email@hidden>)

  • Prev by Date: Re: making an installed application run at startup
  • Next by Date: Re: making an installed application run at startup
  • Previous by thread: Re: making an installed application run at startup
  • Next by thread: Re: making an installed application run at startup
  • Index(es):
    • Date
    • Thread