home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!enterpoop.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!shanega
- From: shanega@athena.mit.edu (Shane G. Artis)
- Subject: Question about inherited paths
- Message-ID: <1993Jan7.233440.13299@athena.mit.edu>
- Sender: shanega@athena.mit.edu
- Nntp-Posting-Host: e40-008-10.mit.edu
- Organization: Massachusetts Institute of Technology
- Date: Thu, 7 Jan 1993 23:34:40 GMT
- Lines: 31
-
-
- I am having a big problem setting up the search path tree for my application.
-
- As I understand it, the normal way to provide a path to an application
- launched from an icon is by using the defaults database like so:
-
- dwrite Workspace ApplicationPath ~/bin:~/lib:/me/foo
-
- Thus if that program in turn looks for executables or data it will
- search the paths listed by the default path tree.
-
- My program is a port of an existing program, and, due to its nature,
- requires me to strip off the command-line flags added by the Workspace
- (-MachLaunch nn nn) and replace them with my own command-line
- arguments shortly after startup, and before the main event loop
- ([NXApp run]) has been entered. Whether this is the cause or not, my
- application only searches a small number of pre-determined paths
- (~/Apps, /bin, a few others I've been able to find) and refuses to
- search any nonstandard ones listed by the ApplicationPath default.
-
- So, how do I pass a customized path tree to my program in a standard
- way, without modifying the program code any further if at all
- possible? Is there some global .profile or .cshrc file that lists a
- path tree for all executed programs? I'm baffled and an important
- customer of mine awaits the result of this question. Speculation and
- any information are most welcome. Please e-mail me if possible and I
- can summarize.
-
- Thank-you,
-
- Shane
-