lol

kde-gtk-config: handle symlinked themes

+17 -1
+4 -1
pkgs/tools/misc/kde-gtk-config/default.nix
··· 22 22 pkgconfig 23 23 ]; 24 24 25 - patches = [ ./kde-gtk-config-2.2.1-install-paths.patch ]; 25 + patches = [ 26 + ./kde-gtk-config-2.2.1-install-paths.patch 27 + ./kde-gtk-config-follow-symlinks.patch 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 + diff --git a/src/appearancegtk2.cpp b/src/appearancegtk2.cpp 2 + index 3d89c82..4dcce69 100644 3 + --- a/src/appearancegtk2.cpp 4 + +++ b/src/appearancegtk2.cpp 5 + @@ -56,7 +56,7 @@ QString AppearanceGTK2::themesGtkrcFile(const QString& themeName) const 6 + QStringList themes=installedThemes(); 7 + themes=themes.filter(QRegExp("/"+themeName+"/?$")); 8 + if(themes.size()==1) { 9 + - QDirIterator it(themes.first(), QDirIterator::Subdirectories); 10 + + QDirIterator it(themes.first(), QDirIterator::Subdirectories | QDirIterator::FollowSymlinks); 11 + while(it.hasNext()) { 12 + it.next(); 13 + if(it.fileName()=="gtkrc") {