Problem with KStandardDirs::installPath("exe")
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Mon Nov 5 11:19:45 GMT 2007
> Von: David Faure
> 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 "/");
>
You're right - I somehow thought it's in kstandarddirs.cpp. Will fix it for windows today.
Christian
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
More information about the kde-core-devel
mailing list