[KDE-India] odd kde-config behavior

subbukk subbukk at gmail.com
Fri Dec 15 20:25:20 CET 2006


On Tuesday 05 December 2006 13:55, subbukk wrote:
> Hi,
>
> "kde-config --path config" returns:
> /home/ganita/.kde/share/config:/etc/kde3:/usr/kde-profiles/students/sha
>re/config
I finally traced the problem to a side effect of debian/ubuntu patch 
discussed in http://lists.debian.org/debian-qt-kde/2004/05/msg00047.html: 

+diff -Nrua kdelibs-3.2.92/kdecore/kstandarddirs.cpp 
kdelibs-patched/kdecore/kstandarddirs.cpp
+--- kdelibs-3.2.92/kdecore/kstandarddirs.cpp	2004-07-16 
11:10:24.000000000 -0500
++++ kdelibs-patched/kdecore/kstandarddirs.cpp	2004-07-26 
16:06:09.000000000 -0500
+@@ -747,6 +747,10 @@
+                     if ((local || testdir.exists()) 
&& !candidates->contains(path))
+                         candidates->append(path);
+                 }
++                // UGLY HACK - Chris Cheney
++                if (local && (!strcmp("config", type)))
++                   candidates->append("/etc/kde3/");
++                //
+                 local = false;
+             }
+         }

As a temporary workaround, I moved /etc/kde3 to /usr/share/config, then 
kde-config puts out the sequence:
$ kde-config --path config
/home/ganita/.kde/share/config:/etc/kde3:/usr/kde-profiles/students/share/config:/usr/share/config

The above patch causes "/etc/kde3" to be always appended after 
$KDEHOME/share/config even if it doesnt exist! But atleast the profile 
settings now override the global ones.

Subbu


More information about the KDE-india mailing list