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

List:       kde-core-devel
Subject:    KStandardDirs behaviour when finding directories
From:       "Dmitry Suzdalev" <dimsuz () gmail ! com>
Date:       2007-07-30 11:55:31
Message-ID: 7aa876c10707300455q3265b8c5h47bcb886770f5cbd () mail ! gmail ! com
[Download RAW message or body]

Hi!

While searching for bug which prevented loading styles in Kopete I
found the following issue.

Suppose I want to find a directory with KStandardDirs. If I write it like this:

QString path = KStandardDirs::locate("appdata", "SomeDir");

then it returns an empty path even though
~/.kde/share/apps/myapp/SomeDir exists.
It finds this path only when I write:

QString path = KStandardDirs::locate("appdata", "SomeDir/");

i.e. with slash appended.

So is this a bug or a feature?
If this is a feature then it should be documented somewhere in
KStandardDirs apidox.
But honestly I would expect the first version to work :)

Cheers,
Dmitry.
[prev in list] [next in list] [prev in thread] [next in thread] 

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