Thread View: comp.sys.next.programmer
1 messages
1 total messages
Started by Shane G. Artis
Thu, 07 Jan 1993 23:34
Question about inherited paths
Author: Shane G. Artis
Date: Thu, 07 Jan 1993 23:34
Date: Thu, 07 Jan 1993 23:34
31 lines
1911 bytes
1911 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads