1
In the case of config files, we want a local sysadm dir added as well.
3
The priorities is as follows:
5
- peoples homedir (.kde4)
6
- for config files, /etc/kde4/
7
- what's defined in KDEDIRS
8
- the default install path.
10
With this patch, we can also install all config files into /usr/ as they just can get
11
overridden by adding new files to /etc/kde4 by the sysadm.
13
Index: kde4libs-4.5.95/kdecore/kernel/kstandarddirs.cpp
14
===================================================================
15
--- kde4libs-4.5.95.orig/kdecore/kernel/kstandarddirs.cpp 2011-01-04 23:50:41.000000000 -0500
16
+++ kde4libs-4.5.95/kdecore/kernel/kstandarddirs.cpp 2011-01-04 23:51:21.000000000 -0500
17
@@ -1174,6 +1174,10 @@
18
if ((local || testdir.exists()) && !candidates.contains(path))
19
candidates.append(path);
21
+ // UGLY HACK - forward porting Chris CHeney's HACK - Rex Dieter
22
+ if ( local && (!strcmp("config", type))) // local is used as a "homedir marker"
23
+ candidates.append(QLatin1String("/etc/kde4/"));