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

List:       kde-core-devel
Subject:    Re: RE: Binary location
From:       Roberto Alsina <ralsina () unl ! edu ! ar>
Date:       2000-03-29 7:55:06
[Download RAW message or body]

On Wed, 29 Mar 2000, David Faure wrote:

> On Wed, Mar 29, 2000 at 03:45:02PM +0200, Hummel, Timo wrote:
> > >Or KStdDirs::findExe(), if from another app.
> > 
> > I don't think its possible, since the application which is currently
> > running calls the crash handler. What if you got the same app installed
> > in different locations?
> 
> 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.
> 
> I don't see a problem here.

As I said in another mail, this will work most of the time, and that's
probably good enough.

 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  ralsina@unl.edu.ar
 (_Y_.)' ._   ) `._`.  " -.-'   Centro de Telematica
  _..`-'_..-_/ /-'_.'           Universidad Nacional del Litoral
(l)-'' ((i).' ((!.'             Santa Fe - Argentina
                                KDE Developer (MFCH)
The stone age didn't end for a lack of stone" Firoz Rasul

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

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