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.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no 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:49:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!deine.net!gitoyen!freenix!enst!enst.fr!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: How to find directory where the program is? Date: Fri, 26 Apr 2002 07:48:55 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <3CC6D15A.2070509@mail.com> <3cc73115.426446486@news.cis.dfn.de> <3CC9459E.7A49A4F7@nbi.dk> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1019825342 1866 137.194.161.2 (26 Apr 2002 12:49:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 26 Apr 2002 12:49:02 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:23142 Date: 2002-04-26T07:48:55-05:00 Hi Preben, Perhaps you should consider putting a hidden file in the user's home directory. Many programs use this technique, not only for user preferences but for the location of files. By way of example, here are some hidden files in my home directory on a Linux machine, showing that the practice is widespread. .lessrc .acrorc .cvsrc .gtkrc .screenrc .kderc .bashrc .dmallocrc .wmrc .tkdiffrc .tcshrc .emacs-places .emacs .emacs_case_exceptions .history .emacs.desktop ----- Original Message ----- From: "Preben Randhol" Newsgroups: comp.lang.ada To: Sent: Friday, April 26, 2002 7:23 AM Subject: Re: How to find directory where the program is? > 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 > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada >