Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: delete the entry from loginwindow.plist using command



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.

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >Re: delete the entry from loginwindow.plist using command (From: Mike Fischer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.