2010-11-20 22:06:09 +00:00
|
|
|
diff -up kdelibs-4.5.80/kdecore/kernel/kstandarddirs.cpp.kstandarddirs kdelibs-4.5.80/kdecore/kernel/kstandarddirs.cpp
|
|
|
|
--- kdelibs-4.5.80/kdecore/kernel/kstandarddirs.cpp.kstandarddirs 2010-11-20 16:04:10.456373049 -0600
|
|
|
|
+++ kdelibs-4.5.80/kdecore/kernel/kstandarddirs.cpp 2010-11-20 16:05:09.356363480 -0600
|
|
|
|
@@ -1125,7 +1125,9 @@ QStringList KStandardDirs::KStandardDirs
|
2008-08-28 22:38:48 +00:00
|
|
|
pit != prefixList->end();
|
|
|
|
++pit)
|
|
|
|
{
|
|
|
|
- if((*pit)!=installprefix||installdir.isEmpty())
|
|
|
|
+ // "exe" never has a custom install path, and the check triggers
|
|
|
|
+ // a false positive due to the libexecdir patch
|
|
|
|
+ if((*pit)!=installprefix||installdir.isEmpty()||!strcmp("exe", type))
|
|
|
|
{
|
2008-11-20 10:22:49 +00:00
|
|
|
for (QStringList::ConstIterator it = dirs.constBegin();
|
|
|
|
it != dirs.constEnd(); ++it)
|
2010-11-20 22:06:09 +00:00
|
|
|
@@ -1143,6 +1145,11 @@ QStringList KStandardDirs::KStandardDirs
|
2008-08-28 22:38:48 +00:00
|
|
|
if ((local || testdir.exists()) && !candidates.contains(path))
|
|
|
|
candidates.append(path);
|
|
|
|
}
|
|
|
|
+ // special-case "config" (forward porting Chris Cheney's
|
|
|
|
+ // hack) - we want /etc/kde after the local config paths
|
|
|
|
+ // and before the ones in /usr (including kde-profile)
|
|
|
|
+ if (local && !strcmp("config", type))
|
2010-11-20 22:06:09 +00:00
|
|
|
+ candidates.append(QLatin1STring("/etc/kde/"));
|
2008-08-28 22:38:48 +00:00
|
|
|
local = false;
|
|
|
|
}
|
|
|
|
else
|