Paths and Install Locations
Paths and Install Locations
- Subject: Paths and Install Locations
- From: Andrew White <email@hidden>
- Date: Wed, 20 Aug 2008 15:26:31 +1000
Scenario:
I have a preference pane that is responsible for controlling how a couple
of different services on the system run. The services use launchd to
control them (and start them at boot time).
The preference pane will normally be installed in /Library/PreferencePanes.
The daemon scripts will normally be installed in /Library/LaunchDaemons.
Here's the question - where is the right place to install the posix tools /
applications that those daemons run. I'd thought to put them in the
PreferencePane bundle, but that means that the launchd scripts need to be
able to find them at boot, and I'm not sure that I want to assume where the
preference pane bundle is installed (in case the user moves it?).
Where is the correct place? And how do I make it easy for the user to
uninstall my app - what happens to the launchd scripts if my apps are
thrown into the trash?
Since these apps might (will?) run as root, I certainly don't want the
scripts to pull some random app from the user's path.
Similarly, if I want to put the apps in a chroot jail, where do I put the
root of this jail?
Any ideas?
--
Andrew White
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden