Blame SOURCES/kdelibs-4.10.0-kstandarddirs.patch

92cace
diff -up kdelibs-4.10.0/kdecore/kernel/kstandarddirs.cpp.kstandarddirs kdelibs-4.10.0/kdecore/kernel/kstandarddirs.cpp
92cace
--- kdelibs-4.10.0/kdecore/kernel/kstandarddirs.cpp.kstandarddirs	2013-01-31 07:44:58.336676504 -0600
92cace
+++ kdelibs-4.10.0/kdecore/kernel/kstandarddirs.cpp	2013-01-31 07:44:58.340676454 -0600
92cace
@@ -1153,7 +1153,9 @@ QStringList KStandardDirs::KStandardDirs
92cace
                  pit != prefixList->end();
92cace
                  ++pit)
92cace
             {
92cace
-            if((*pit)!=installprefix||installdir.isEmpty())
92cace
+            // "exe" never has a custom install path, and the check triggers
92cace
+            // a false positive due to the libexecdir patch
92cace
+            if((*pit)!=installprefix||installdir.isEmpty()||!strcmp("exe", type))
92cace
             {
92cace
                     for (QStringList::ConstIterator it = dirs.constBegin();
92cace
                          it != dirs.constEnd(); ++it)
92cace
@@ -1171,6 +1173,11 @@ QStringList KStandardDirs::KStandardDirs
92cace
                         if ((local || testdir.exists()) && !candidates.contains(path))
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