[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Binary location
From: David Faure <david () mandrakesoft ! com>
Date: 2000-03-29 13:33:05
[Download RAW message or body]
On Wed, Mar 29, 2000 at 03:55:53PM +0200, Hans Petter Bieker wrote:
> On Wed, 29 Mar 2000, David Faure wrote:
>
> > Then
> > - if argv[0] has the full path, you've got it
> > - if not, then findExe (which uses $PATH) will return the same one as
> > the one the shell chose - the first one in $PATH.
>
> That will not work if PATH is relative and you do a chdir in the app?!
Huh ? PATH being relative ? Never seen that ;-)
Of course, that makes the problem much more complex !
But I really doubt anybody starts a KDE app
from command line + with a relative path + the app does a chdir elsewhere
+ the app is not in the PATH at all + the app crashes
Likelyness ? :)
--
David FAURE
david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic