blob: 13a864c3b3b20bf5f864d60814b198504072be73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
In the case of config files, we want a local sysadm dir added as well.
The priorities is as follows:
- peoples homedir (.kde4)
- for config files, /etc/kde4/
- what's defined in KDEDIRS
- the default install path.
With this patch, we can also install all config files into /usr/ as they just can get
overridden by adding new files to /etc/kde4 by the sysadm.
Index: kde4libs/kdecore/kernel/kstandarddirs.cpp
===================================================================
--- kde4libs.orig/kdecore/kernel/kstandarddirs.cpp 2014-02-05 14:54:48.376405206 +0100
+++ kde4libs/kdecore/kernel/kstandarddirs.cpp 2014-02-05 14:54:48.372405112 +0100
@@ -1167,6 +1167,10 @@
if ((local || testdir.exists()) && !candidates.contains(path, cs))
candidates.append(path);
}
+ // UGLY HACK - forward porting Chris CHeney's HACK - Rex Dieter
+ if ( local && (!strcmp("config", type))) // local is used as a "homedir marker"
+ candidates.append(QLatin1String("/etc/kde4/"));
+ //
local = false;
}
else
|