In article <p05200f06ba4aca4bd15c@[192.168.254.205]>,
 [EMAIL PROTECTED] (Rich Morin) wrote:

> I'm building a multi-program application, using C, ObjC, Perl, YAML, etc.
> I think I know where some of my files should go, but others mystify me.
> These seem pretty clear:
> 
>    application                   /Applications/Utilities/Foo.app
>    contextual menu plugin   /Library/Contextual Menu Plugins/Foo.plugin

This should, perhaps, be /Users/$user/Library/Contextual Menu 
Items/Foo.plugin.

It depends on whether you want every user to have it, or just particular 
users.  Forgive me if I am going over something you know, but Mac OS X has 
different "domains".  Something could be installed in the System domain, the 
Local domain, the Network domain, the User domain, or the Classic domain.  
Or, in perl (this code works in an unreleased version of Mac::Carbon):


   [pudge@sweeney pudge]$ perl -MMac::Files -le 'for (
   kSystemDomain,kLocalDomain,kNetworkDomain,kUserDomain,kClassicDomain) {
      print FindFolder($_, "dlib") || "none";
   }'

   /System/Library
   /Library
   /Network/Library
   /Users/pudge/Library
   none

Usually, you will want to install in the Local domain for all users, or the 
User domain for individual users.  I prefer the User domain unless there's 
an explicit reason for the Local domain, because it doesn't clog up 
additional users, and makes it much easier to migrate a user from one system 
to another (just copy his Users folder).


>    wrapper script        /usr/local/bin/foo
> 
> These do not:
> 
>    configuration files           /usr/local/etc (if there was one :-)
>    daemon scripts        /usr/local/lib (if there was one :-)
>    helper scripts        /usr/local/lib (if there was one :-)

If those directories don't exist, there's no reason you can't create them.

> One thought I have had is to put the latter files into Foo.app, but I
> don't know if there is a Well-Known Place to use for this.  Help?

I don't know much about the internals of Packages/Bundles.

-- 
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/

Reply via email to