Re: Add application to Startup Items?
Re: Add application to Startup Items?
- Subject: Re: Add application to Startup Items?
- From: Gregory Weston <email@hidden>
- Date: Thu, 1 Jul 2004 07:48:47 -0400
On Jun 30, 2004, at 11:21 PM, Mike Chambers wrote:
I have a simple status bar application and want to give the user the
option to have the app automatically started when they login.
I noticed that on 10.3.4 there is a StartUp Items section in the Users
section of System Preferences which has a few applications. How do I
add my application to that panel, and have it start automatically when
the user logs in.
I believe the proper answer here is: "Write to DTS and ask them for
sample code to achieve it. There is no supported mechanism for doing so
at this time."
I did it without going to DTS, but I'm not sure if it's appropriate to
share the code given the above.
There is, obviously, a way of doing it and a few examples can be found
on the web or via Google. Be warned, though, that they are not all
reliable. I discovered that sometimes, depending on the mechanism you
choose to interact with the prefs, the system will falsely report to
you that the user has no login items defined and when you do what's
necessary to add yours in that circumstance, you'll overwrite what they
have. I think it may have something to do with the fact that somewhere
along the line Apple changed OS X to create a group for every user.
All of the docs I have read suggest creating a StartupItem in:
/Library/StartupItems
but this folder appears to not exists on OS X anymore.
That folder does not exist by default, but you could create it. But
that's not for the kind of things you're asking about.
G
_______________________________________________
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.