Re: LaunchOnce
- From: dempson@xxxxxxxxxxxxx (David Empson)
- Date: Mon, 3 Dec 2007 13:44:06 +1300
Michelle Steiner <michelle@xxxxxxxxxxxx> wrote:
I have a file named "LaunchOnce" in my startup items
Just to clarify: do you really mean a process which was launched at
system startup, or is it a Login Item in System Preferences > Accounts?
The distinction is that Login Items are launched after the user logs in,
whereas Startup Items are launched while the system is starting up
(before the login prompt). Startup Items also run as root (or some other
special user) whereas Login Items run as a normal user.
but I have no recollection of what it is supposed to do or when I
put it there.
I can't find it on my disk, and ~/library/startupitems folder is empty
(which makes me wonder where all the startup items live).
I wouldn't expect there to be a user-specific "StartupItems" folder -
there is no opportunity to run startup items for a user, since the
system has already started up by the time the user gets to log in.
Actual startup items live in /System/Library/StartupItems or
/Library/StartupItems. They typically contain a shell script (with the
same name as the startup item) and a StartupParameters.plist file.
This mechanism is deprecated under Leopard and is no longer being used
by Apple, but there are still some third party startup items.
In Tiger and Leopard, launchd is used to launch various processes during
system startup.
The /System/Library/LaunchDaemons and /Library/LaunchDaemons folders
contain plist files which define items that can be launched at system
startup, including rules about whether to launch them.
The /System/Library/LaunchAgents, /Library/LaunchAgents and
~/Library/LaunchAgents folders contain plist files which define items
that can be launched when a user logs in, including rules about whether
to launch them.
You can easily examine or modify these using the free application Lingon
(recently updated for Leopard, or you can use an older version for
Tiger).
If you really meant Login Items, then you can see the path in System
Preferences by leaving the mouse pointing to the item, which will show a
tooltip containing the pathname.
There are other ways in which processes can be launched at startup or
login, and I haven't tracked down all of them yet.
--
David Empson
dempson@xxxxxxxxxxxxx
.
- Prev by Date: Re: Apple Phone Support Outsourced to 3rd World
- Next by Date: Re: Apple Phone Support Outsourced to 3rd World
- Previous by thread: External drive not showing on desktop
- Next by thread: Re: LaunchOnce
- Index(es):
Relevant Pages
|