Re: delete the entry from loginwindow.plist using command
site_archiver@lists.apple.com Delivered-To: macnetworkprog@lists.apple.com Share and Enjoy -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware _______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macnetworkprog/site_archiver%40lists.... At 22:01 +0100 29/1/08, Mike Fischer wrote: This is just one of the problems you encounter when accessing this file directly. From your question it seems that you want to add and remove Login Items, correct? As you probably noticed there are no official APIs for this. Actually, that's changed in 10.5, where we now have a proper API to modify both the per-user and global login items list. See "LSSharedFileList.h" for details. Alas, I haven't yet had time to write a sample that shows how to use this. It's a pretty simple API though. Currently Mac OS X has a compatibility shim that syncs between the plist files and the backing store for the new API. That compatibility shim will not be present forever. IMPORTANT: If you manipulate the list of login items (either per-user or global) by directly modifying plist files, you will break on future versions of Mac OS X. Use the new API! Alternatively, use the LoginItemsAE technique, which works back to 10.2 and should continue to work for the foreseeable future. This email sent to site_archiver@lists.apple.com
participants (1)
-
Quinn