Re: Adding something to the current user's login items.
Re: Adding something to the current user's login items.
- Subject: Re: Adding something to the current user's login items.
- From: Sherm Pendley <email@hidden>
- Date: Sat, 22 Feb 2003 17:51:05 -0500
On Saturday, February 22, 2003, at 03:41 PM, Dan Bernstein wrote:
What's the best way to add an item (my application's "helper") to the
current user's login items?
The system preferences panel does it by setting user defaults in the
domain "loginwindow". Do a "defaults read loginwindow" to see what's
there - you may want to add an item or two in the system preferences
panel first, just to populate the list.
It looks to me like the key "AutoLaunchedApplicationDictionary" in that
domain refers to an array, and each item in that array is a dictionary
with two keys: "Hide" is a '0' or '1', and determines whether the app
will be hidden or visible upon launch, and "Path" is the path to the
.app bundle.
See the docs for NSUserDefaults for details on working with the user
defaults database.
sherm--
UNIX: Where /sbin/init is Job 1.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.