Re: Startup items
Re: Startup items
- Subject: Re: Startup items
- From: email@hidden
- Date: Mon, 29 Apr 2002 18:58:44 +0200
On lundi, avril 29, 2002, at 06:11 , Isaac Sherman wrote:
I want a daemon of mine to launch at startup. But I'd like to do this
without the user having to interact. Is this a good approach? Or
should I
give them instructions on how to do this (easier for me, but they might
be
turned off by doing it)? I'm thinking of the average Mac user. For my
first publicly released app, I'd like it (and any others I make) to be
as
pleasant as possible. I don't see anything about this in the AHIG, so I
thought I'd ask.
As to actually doing the deed, I found that the startup items are
listed in
"LoginWindow.plist". Can I add to that file directly, or should I dump
it
into the app, then add to it, then rewrite?
If your daemon needs to be launched at Startup, just create a
StartupItem and copy it to the /Library/StartupItems folder.
You need to create a folder (named toto in this example).
Inside the toto folder, you put your daemon executable.
Inside the toto folder, you create 2 files:
- StartupParameters.plist which is property list file. To see what
values you need to set, have a look at the StartupParameters.plist in
/System/Library/StartupItems/ . The Networks and
- a toto text file which is a shell script which is going to launch your
daemon with the appropriate args. You can avoid creating this file and
just use the name of your daemon instead of toto if you don't need to
use args.
You can find more info on this here:
http://www.opensource.apple.com/projects/documentation/howto/html/SystemStarter_HOWTO.
html
Hope it helps.
_______________________________________________
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.