home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / next / programm / 8029 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.8 KB  |  43 lines

  1. Newsgroups: comp.sys.next.programmer
  2. 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
  3. From: shanega@athena.mit.edu (Shane G. Artis)
  4. Subject: Question about inherited paths
  5. Message-ID: <1993Jan7.233440.13299@athena.mit.edu>
  6. Sender: shanega@athena.mit.edu
  7. Nntp-Posting-Host: e40-008-10.mit.edu
  8. Organization: Massachusetts Institute of Technology
  9. Date: Thu, 7 Jan 1993 23:34:40 GMT
  10. Lines: 31
  11.  
  12.  
  13. I am having a big problem setting up the search path tree for my application.
  14.  
  15. As I understand it, the normal way to provide a path to an application
  16. launched from an icon is by using the defaults database like so:
  17.  
  18. dwrite Workspace ApplicationPath ~/bin:~/lib:/me/foo
  19.  
  20. Thus if that program in turn looks for executables or data it will
  21. search the paths listed by the default path tree.
  22.  
  23. My program is a port of an existing program, and, due to its nature,
  24. requires me to strip off the command-line flags added by the Workspace
  25. (-MachLaunch nn nn) and replace them with my own command-line
  26. arguments shortly after startup, and before the main event loop
  27. ([NXApp run]) has been entered.  Whether this is the cause or not, my
  28. application only searches a small number of pre-determined paths
  29. (~/Apps, /bin, a few others I've been able to find) and refuses to
  30. search any nonstandard ones listed by the ApplicationPath default.
  31.  
  32. So, how do I pass a customized path tree to my program in a standard
  33. way, without modifying the program code any further if at all
  34. possible?  Is there some global .profile or .cshrc file that lists a
  35. path tree for all executed programs?  I'm baffled and an important
  36. customer of mine awaits the result of this question.  Speculation and
  37. any information are most welcome.  Please e-mail me if possible and I
  38. can summarize.
  39.  
  40. Thank-you,
  41.  
  42. Shane
  43.