Gentoo Archives: gentoo-commits

From: "Alex Alexander (wired)" <wired@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.patch 01_gentoo_set_xdg_menu_prefix.patch
Date: Tue, 01 Sep 2009 13:46:56
Message-Id: E1MiYW1-0001UB-4U@stork.gentoo.org
1 wired 09/09/01 18:55:37
2
3 Added: 02_gentoo_append_xdg_config_dirs.patch
4 01_gentoo_set_xdg_menu_prefix.patch
5 Log:
6 added missing patches
7 (Portage version: 2.2_rc40/cvs/Linux x86_64, RepoMan options: --force)
8
9 Revision Changes Path
10 1.1 kde-base/kdelibs/files/dist/02_gentoo_append_xdg_config_dirs.patch
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/files/dist/02_gentoo_append_xdg_config_dirs.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/files/dist/02_gentoo_append_xdg_config_dirs.patch?rev=1.1&content-type=text/plain
14
15 Index: 02_gentoo_append_xdg_config_dirs.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("/etc/xdg");
34 +
35 #ifdef Q_WS_WIN
36 - xdgdirList.append(installPath("kdedir") + "etc/xdg");
37 + xdgdirList.append(installPath("kdedir") + "etc/xdg");
38 #else
39 - xdgdirList.append(KDESYSCONFDIR "/xdg");
40 + xdgdirList.append(KDESYSCONFDIR "/xdg");
41 #endif
42 - }
43 + xdgdirList.append("/etc/xdg");
44
45 QString localXdgDir = readEnvPath("XDG_CONFIG_HOME");
46 if (!localXdgDir.isEmpty())
47
48
49
50 1.1 kde-base/kdelibs/files/dist/01_gentoo_set_xdg_menu_prefix.patch
51
52 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/files/dist/01_gentoo_set_xdg_menu_prefix.patch?rev=1.1&view=markup
53 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/files/dist/01_gentoo_set_xdg_menu_prefix.patch?rev=1.1&content-type=text/plain
54
55 Index: 01_gentoo_set_xdg_menu_prefix.patch
56 ===================================================================
57 Set XDG_MENU_PREFIX to kde4- if not set. This fixes "empty-applications-menu" when running
58 KDE4 applications outside of KDE4 environment.
59
60 Index: kded/vfolder_menu.cpp
61 ===================================================================
62 --- kded/vfolder_menu.cpp (revision 1014368)
63 +++ kded/vfolder_menu.cpp (working copy)
64 @@ -770,7 +770,9 @@
65 QString result;
66
67 QString xdgMenuPrefix = QString::fromLocal8Bit(qgetenv("XDG_MENU_PREFIX"));
68 - if (!xdgMenuPrefix.isEmpty())
69 + if (xdgMenuPrefix.isEmpty())
70 + xdgMenuPrefix = "@REPLACE_MENU_PREFIX@";
71 +
72 {
73 QFileInfo fileInfo(fileName);