nixpkgs/pkgs/development/libraries/kde-frameworks/kcmutils/kcmutils-follow-symlinks.patch

14 lines
855 B
Diff
Raw Normal View History

2018-01-14 15:28:23 +01:00
diff --git a/src/kpluginselector.cpp b/src/kpluginselector.cpp
index 137c865..097ab75 100644
--- a/src/kpluginselector.cpp
+++ b/src/kpluginselector.cpp
@@ -303,7 +303,7 @@ void KPluginSelector::addPlugins(const QString &componentName,
2016-04-21 17:32:21 +02:00
QStringList desktopFileNames;
const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, componentName + QStringLiteral("/kpartplugins"), QStandardPaths::LocateDirectory);
2018-01-14 15:28:23 +01:00
for (const QString &dir : dirs) {
2016-04-21 17:32:21 +02:00
- QDirIterator it(dir, QStringList() << QStringLiteral("*.desktop"), QDir::NoFilter, QDirIterator::Subdirectories);
2018-01-14 15:28:23 +01:00
+ QDirIterator it(dir, QStringList() << QStringLiteral("*.desktop"), QDir::NoFilter, QDirIterator::Subdirectories | QDirIterator::FollowSymlinks);
2016-04-21 17:32:21 +02:00
while (it.hasNext()) {
desktopFileNames.append(it.next());
}