Blame SOURCES/kdelibs-4.11.97-kstandarddirs.patch

219491
diff -up kdelibs-4.11.97/kdecore/kernel/kstandarddirs.cpp.kstandarddirs kdelibs-4.11.97/kdecore/kernel/kstandarddirs.cpp
219491
--- kdelibs-4.11.97/kdecore/kernel/kstandarddirs.cpp.kstandarddirs	2013-11-30 21:24:01.637163800 -0600
219491
+++ kdelibs-4.11.97/kdecore/kernel/kstandarddirs.cpp	2013-11-30 21:35:27.166292739 -0600
219491
@@ -1149,7 +1149,8 @@ QStringList KStandardDirs::KStandardDirs
92cace
                  pit != prefixList->end();
92cace
                  ++pit)
92cace
             {
219491
-            if((*pit).compare(installprefix, cs) != 0 || installdir.isEmpty())
219491
+            // "exe" never has a custom install path, and the check triggers a false positive due to the libexecdir patch
219491
+            if((*pit).compare(installprefix, cs) != 0 || installdir.isEmpty() || !strcmp("exe", type))
92cace
             {
92cace
                     for (QStringList::ConstIterator it = dirs.constBegin();
92cace
                          it != dirs.constEnd(); ++it)
219491
@@ -1163,6 +1164,11 @@ QStringList KStandardDirs::KStandardDirs
219491
                         if ((local || testdir.exists()) && !candidates.contains(path, cs))
92cace
                             candidates.append(path);
92cace
                     }
92cace
+                    // special-case "config" (forward porting Chris Cheney's
92cace
+                    // hack) - we want /etc/kde after the local config paths
92cace
+                    // and before the ones in /usr (including kde-profile)
92cace
+                    if (local && !strcmp("config", type))
92cace
+                       candidates.append(QLatin1String("/etc/kde/"));
92cace
                     local = false;
92cace
                 }
92cace
             else