Commit 6bb62f17 authored by Elvis Angelaccio's avatar Elvis Angelaccio

Look for kfileitemaction plugins in the expected subfolder

For a rationale, see https://git.reviewboard.kde.org/r/128225/
parent f2772c4f
...@@ -519,7 +519,7 @@ void DolphinContextMenu::addFileItemPluginActions() ...@@ -519,7 +519,7 @@ void DolphinContextMenu::addFileItemPluginActions()
} }
} }
const auto jsonPlugins = KPluginLoader::findPlugins(QString(), [](const KPluginMetaData& metaData) { const auto jsonPlugins = KPluginLoader::findPlugins(QStringLiteral("kf5/kfileitemaction"), [](const KPluginMetaData& metaData) {
return metaData.serviceTypes().contains(QStringLiteral("KFileItemAction/Plugin")); return metaData.serviceTypes().contains(QStringLiteral("KFileItemAction/Plugin"));
}); });
......
...@@ -230,7 +230,7 @@ void ServicesSettingsPage::loadServices() ...@@ -230,7 +230,7 @@ void ServicesSettingsPage::loadServices()
} }
// Load JSON-based plugins that implement the KFileItemActionPlugin interface // Load JSON-based plugins that implement the KFileItemActionPlugin interface
const auto jsonPlugins = KPluginLoader::findPlugins(QString(), [](const KPluginMetaData& metaData) { const auto jsonPlugins = KPluginLoader::findPlugins(QStringLiteral("kf5/kfileitemaction"), [](const KPluginMetaData& metaData) {
return metaData.serviceTypes().contains(QStringLiteral("KFileItemAction/Plugin")); return metaData.serviceTypes().contains(QStringLiteral("KFileItemAction/Plugin"));
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment