From kde-core-devel Mon Jul 30 11:55:31 2007 From: "Dmitry Suzdalev" Date: Mon, 30 Jul 2007 11:55:31 +0000 To: kde-core-devel Subject: KStandardDirs behaviour when finding directories Message-Id: <7aa876c10707300455q3265b8c5h47bcb886770f5cbd () mail ! gmail ! com> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=118579658822944 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.