Remove old startup item
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