Gentoo Archives: gentoo-commits

From: "Theo Chatzimichos (tampakrap)" <tampakrap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/kdelibs/files/dist: 02_gentoo_append_xdg_config_dirs-1.patch
Date: Wed, 26 Jan 2011 23:46:08
Message-Id: 20110126234557.A463D20054@flycatcher.gentoo.org
1 tampakrap 11/01/26 23:45:57
2
3 Added: 02_gentoo_append_xdg_config_dirs-1.patch
4 Log:
5 Add missing patch from kde overlay
6
7 (Portage version: 2.2.0_alpha17/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 kde-base/kdelibs/files/dist/02_gentoo_append_xdg_config_dirs-1.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdelibs/files/dist/02_gentoo_append_xdg_config_dirs-1.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdelibs/files/dist/02_gentoo_append_xdg_config_dirs-1.patch?rev=1.1&content-type=text/plain
14
15 Index: 02_gentoo_append_xdg_config_dirs-1.patch
16 ===================================================================
17 Set up XDG_CONFIG_DIRS lookup in order:
18 1. custom XDG_CONFIG_DIRS from env
19 2. kdeprefix xdg config dirs
20 3. /etc/xdg
21
22 Index: kdecore/kernel/kstandarddirs.cpp
23 ===================================================================
24 --- kdecore/kernel/kstandarddirs.cpp (revision 1014759)
25 +++ kdecore/kernel/kstandarddirs.cpp (working copy)
26 @@ -1664,16 +1664,13 @@
27 {
28 tokenize(xdgdirList, xdgdirs, QString(QChar(KPATH_SEPARATOR)));
29 }
30 - else
31 - {
32 - xdgdirList.clear();
33 - xdgdirList.append(QString::fromLatin1("/etc/xdg"));
34 +
35 #ifdef Q_WS_WIN
36 - xdgdirList.append(installPath("kdedir") + QString::fromLatin1("etc/xdg"));
37 + xdgdirList.append(installPath("kdedir") + QString::fromLatin1("etc/xdg"));
38 #else
39 - xdgdirList.append(QFile::decodeName(KDESYSCONFDIR "/xdg"));
40 + xdgdirList.append(QFile::decodeName(KDESYSCONFDIR "/xdg"));
41 #endif
42 - }
43 + xdgdirList.append(QString::fromLatin1("/etc/xdg"));
44
45 QString localXdgDir = readEnvPath("XDG_CONFIG_HOME");
46 if (!localXdgDir.isEmpty())