kde-gtk-config: handle symlinked themes
This commit is contained in:
parent
08c365979a
commit
95b12bf0be
@ -22,7 +22,10 @@ stdenv.mkDerivation {
|
|||||||
pkgconfig
|
pkgconfig
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [ ./kde-gtk-config-2.2.1-install-paths.patch ];
|
patches = [
|
||||||
|
./kde-gtk-config-2.2.1-install-paths.patch
|
||||||
|
./kde-gtk-config-follow-symlinks.patch
|
||||||
|
];
|
||||||
|
|
||||||
cmakeFlags = ''
|
cmakeFlags = ''
|
||||||
-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib}/lib/glib-2.0/include
|
-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib}/lib/glib-2.0/include
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src/appearancegtk2.cpp b/src/appearancegtk2.cpp
|
||||||
|
index 3d89c82..4dcce69 100644
|
||||||
|
--- a/src/appearancegtk2.cpp
|
||||||
|
+++ b/src/appearancegtk2.cpp
|
||||||
|
@@ -56,7 +56,7 @@ QString AppearanceGTK2::themesGtkrcFile(const QString& themeName) const
|
||||||
|
QStringList themes=installedThemes();
|
||||||
|
themes=themes.filter(QRegExp("/"+themeName+"/?$"));
|
||||||
|
if(themes.size()==1) {
|
||||||
|
- QDirIterator it(themes.first(), QDirIterator::Subdirectories);
|
||||||
|
+ QDirIterator it(themes.first(), QDirIterator::Subdirectories | QDirIterator::FollowSymlinks);
|
||||||
|
while(it.hasNext()) {
|
||||||
|
it.next();
|
||||||
|
if(it.fileName()=="gtkrc") {
|
Loading…
x
Reference in New Issue
Block a user