• 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
Remove old startup item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Remove old startup item


  • Subject: Remove old startup item
  • From: Andrew Keller <email@hidden>
  • Date: Mon, 21 Jan 2013 18:55:32 -0500

Hello, all,

In previous versions of my app, the installer added the app to the system-wide per-user login items list (/Library/Preferences/loginwindow.plist).  The app was converted to use launchd a while ago, but installations of the old version are still floating around, so I would like to modify the current installer to be able to remove the old login item.

It looks like `defaults` could be used to make the necessary modifications, but the man page says that its behavior regarding non-preferences files is likely to change in the future.

Before the app used launchd, it used CoreFoundation to read the file, insert a new entry, and save the file.  Theoretically, the same technique could be used to remove the login item.

It would be nice to simply add a few lines to the postinstall script in the installer package, but if it would be more reliable to write a CoreFoundation tool, I can do that instead.

Any suggestions?

Thanks,
Andrew Keller


 _______________________________________________
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: Remove old startup item
      • From: Stephane Sudre <email@hidden>
  • Prev by Date: Re: Dropbox installer
  • Next by Date: Re: Remove old startup item
  • Previous by thread: Re: Dropbox installer
  • Next by thread: Re: Remove old startup item
  • Index(es):
    • Date
    • Thread