Problem with KStandardDirs::installPath("exe")

David Faure faure at kde.org
Mon Nov 5 11:07:24 GMT 2007


On Saturday 03 November 2007, Christian Ehrlicher wrote:
> Hi,
> 
> I've a problem with KStandardDirs::installPath("exe"). According to
> apidocs
> (http://api.kde.org/4.0-api/kdelibs-apidocs/kdecore/html/classKStandardDirs.html)
> it should return $prefix/bin. But that's not the case:
> 
> QString KStandardDirs::installPath(const char *type)
> {
>   ...
>   if (strcmp("exe", type) == 0)
>      return prefix + '/';
>   ...
> }
> 
> Is this intended?

You're looking at kstandarddirs_win.cpp - so this is a kde-windows question (I don't know
what is the intended path setup on Windows).

In kstandarddirs_unix.cpp we say
        if (strcmp("exe", type) == 0)
                return QString::fromLatin1(BIN_INSTALL_DIR "/");

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list