mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
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(-)
|
|
|
|
diff --git a/src/kpluginselector.cpp b/src/kpluginselector.cpp
|
|
index 46deef5..2eacb9f 100644
|
|
--- a/src/kpluginselector.cpp
|
|
+++ b/src/kpluginselector.cpp
|
|
@@ -309,7 +309,7 @@ void KPluginSelector::addPlugins(const QString &componentName,
|
|
QStringList desktopFileNames;
|
|
const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, componentName + QStringLiteral("/kpartplugins"), QStandardPaths::LocateDirectory);
|
|
for (const QString &dir : dirs) {
|
|
- QDirIterator it(dir, QStringList() << QStringLiteral("*.desktop"), QDir::NoFilter, QDirIterator::Subdirectories);
|
|
+ QDirIterator it(dir, QStringList() << QStringLiteral("*.desktop"), QDir::NoFilter, QDirIterator::Subdirectories | QDirIterator::FollowSymlinks);
|
|
while (it.hasNext()) {
|
|
desktopFileNames.append(it.next());
|
|
}
|
|
--
|
|
2.25.4
|
|
|