From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,814d0ec938d6e4da X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-26 05:27:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!news.net.uni-c.dk!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: How to find directory where the program is? Date: Fri, 26 Apr 2002 12:23:35 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <3CC6D15A.2070509@mail.com> <3cc73115.426446486@news.cis.dfn.de> <3CC9459E.7A49A4F7@nbi.dk> NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1019823815 2188 129.241.83.78 (26 Apr 2002 12:23:35 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Fri, 26 Apr 2002 12:23:35 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:23141 Date: 2002-04-26T12:23:35+00:00 List-Id: On Fri, 26 Apr 2002 14:18:38 +0200, Jacob Sparre Andersen wrote: > Preben Randhol wrote: > >> On Wed, 24 Apr 2002 23:08:28 GMT, Nick Roberts wrote: >> > Furthermore, one has to ask the question "why?" (Why do you wish your >> >> Basicly so that the program can find out where it's other files are like >> the help files and graphics etc... > > Considering that many systemadministrators insist on keeping > executables, documentation and system-wide configurations in > separate locations, it is not neccessarily a good idea to > hard-code the relative or absolute locations of these files. I know that, but if you install the program in /usr/bin then I expect (on Linux) to find the graphics and help in /usr/share/programname/ if you put it in /usr/local/bin then /usr/local/share/programname/ etc.... Preben