[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Binary location
From:       Hans Petter Bieker <bieker () stud ! ntnu ! no>
Date:       2000-03-29 14:20:50
[Download RAW message or body]

On Wed, 29 Mar 2000, David Faure wrote:

> > That will not work if PATH is relative and you do a chdir in the app?!
> Huh ? PATH being relative ? Never seen that ;-)

PATH=.:/usr/bin:/usr/local/bin

Actually "." is by default in path on most of the machines I'm using. (Not
my machines.)

> 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

:-) It depends on what you are going to use the path for.

Let's say you are doing development on a "kdeinit". "." is before
/usr/local/kde/bin (whatever) in path so you just start it by
"kdeinit". kdeinit does a "chdir(home_dir)" (according to the code it 
will do that) and crashes. drkonqy vil then tell you that
/usr/local/kde/bin/kdeinit has crashed.

I don't think it's a big problem. I think it depends on what it will
do. I wouldn't like it if it starts debuging on the wrong binary.

-bieker-

Norwegian University of Science and Technology, Engineering Cybernetics
                 bieker@stud.ntnu.no / bieker@kde.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic