Re: delete the entry from loginwindow.plist using command
Re: delete the entry from loginwindow.plist using command
- Subject: Re: delete the entry from loginwindow.plist using command
- From: Quinn <email@hidden>
- Date: Wed, 30 Jan 2008 09:49:05 +0000
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:
This email sent to email@hidden