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

26 lines
1.1 KiB
Diff
Raw Normal View History

2020-07-13 17:26:47 +01:00
From 4d5dcc309fba688aa1db8dd915a0abdf07f61e81 Mon Sep 17 00:00:00 2001
From: Thomas Tuegel <ttuegel@mailbox.org>
Date: Mon, 13 Jul 2020 11:23:36 -0500
Subject: [PATCH] kcmutils follow symlinks
---
src/kpluginselector.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
2018-01-14 14:28:23 +00:00
diff --git a/src/kpluginselector.cpp b/src/kpluginselector.cpp
2020-07-13 17:26:47 +01:00
index 46deef5..2eacb9f 100644
2018-01-14 14:28:23 +00:00
--- a/src/kpluginselector.cpp
+++ b/src/kpluginselector.cpp
2020-07-13 17:26:47 +01:00
@@ -309,7 +309,7 @@ void KPluginSelector::addPlugins(const QString &componentName,
2016-04-21 16:32:21 +01:00
QStringList desktopFileNames;
const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, componentName + QStringLiteral("/kpartplugins"), QStandardPaths::LocateDirectory);
2018-01-14 14:28:23 +00:00
for (const QString &dir : dirs) {
2016-04-21 16:32:21 +01:00
- QDirIterator it(dir, QStringList() << QStringLiteral("*.desktop"), QDir::NoFilter, QDirIterator::Subdirectories);
2018-01-14 14:28:23 +00:00
+ QDirIterator it(dir, QStringList() << QStringLiteral("*.desktop"), QDir::NoFilter, QDirIterator::Subdirectories | QDirIterator::FollowSymlinks);
2016-04-21 16:32:21 +01:00
while (it.hasNext()) {
desktopFileNames.append(it.next());
}
2020-07-13 17:26:47 +01:00
--
2.25.4