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

List:       kde-devel
Subject:    Re: equivalent method for 'which' or 'type'
From:       David Faure <faure () kde ! org>
Date:       2005-05-04 20:10:26
Message-ID: 200505042210.26354.faure () kde ! org
[Download RAW message or body]

On Thursday 05 May 2005 00:06, Edwin Schepers wrote:
> Hi,
> Does a method exist in some class which is an equivalent to the 'which' or 
> 'type' shell commands?
> I want to check whether an executable is present in the PATH.

KStandardDirs::findExe("myapp");

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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