tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
kde-gtk-config: handle symlinked themes
Thomas Tuegel
11 years ago
95b12bf0
08c36597
+17
-1
2 changed files
expand all
collapse all
unified
split
pkgs
tools
misc
kde-gtk-config
default.nix
kde-gtk-config-follow-symlinks.patch
+4
-1
pkgs/tools/misc/kde-gtk-config/default.nix
···
22
22
pkgconfig
23
23
];
24
24
25
25
-
patches = [ ./kde-gtk-config-2.2.1-install-paths.patch ];
25
25
+
patches = [
26
26
+
./kde-gtk-config-2.2.1-install-paths.patch
27
27
+
./kde-gtk-config-follow-symlinks.patch
28
28
+
];
26
29
27
30
cmakeFlags = ''
28
31
-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib}/lib/glib-2.0/include
+13
pkgs/tools/misc/kde-gtk-config/kde-gtk-config-follow-symlinks.patch
···
1
1
+
diff --git a/src/appearancegtk2.cpp b/src/appearancegtk2.cpp
2
2
+
index 3d89c82..4dcce69 100644
3
3
+
--- a/src/appearancegtk2.cpp
4
4
+
+++ b/src/appearancegtk2.cpp
5
5
+
@@ -56,7 +56,7 @@ QString AppearanceGTK2::themesGtkrcFile(const QString& themeName) const
6
6
+
QStringList themes=installedThemes();
7
7
+
themes=themes.filter(QRegExp("/"+themeName+"/?$"));
8
8
+
if(themes.size()==1) {
9
9
+
- QDirIterator it(themes.first(), QDirIterator::Subdirectories);
10
10
+
+ QDirIterator it(themes.first(), QDirIterator::Subdirectories | QDirIterator::FollowSymlinks);
11
11
+
while(it.hasNext()) {
12
12
+
it.next();
13
13
+
if(it.fileName()=="gtkrc") {