[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:14:19
[Download RAW message or body]
On Wed, Mar 29, 2000 at 10:37:52AM +0300, Roberto Alsina wrote:
> On Wed, 29 Mar 2000, Hummel, Timo wrote:
>
> > Hi,
> >
> > for the crash handler I need to get out where the binary of an application
> > resides. For example, when I launch /usr/bin/test, the application should
> > get out where it is (in /usr/bin, filename test in this example). How do I
> > do that?
>
> That's one of the FAQs in comp.os.unix.programming, IIRC>
> The answer used to be: you can't, really, or at least, not portably.
Well, KStdDirs::findExe() is _very _ portable. ;-)
Looks like the question is: what exactly are you trying to do,
and in which case ?
--
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