diff --git a/src/plasma/pluginloader.cpp b/src/plasma/pluginloader.cpp index 671140a8c..df719b065 100644 --- a/src/plasma/pluginloader.cpp +++ b/src/plasma/pluginloader.cpp @@ -19,10 +19,11 @@ #include "pluginloader.h" +#include + #include #include #include -#include #include #include @@ -818,7 +819,9 @@ KPluginInfo::List PluginLoader::internalContainmentActionsInfo() const static KPluginInfo::List standardInternalInfo(const QString &type, const QString &category = QString()) { - QStringList files = KGlobal::dirs()->findAllResources("appdata", "plasma/internal/" + type + "/*.desktop", KStandardDirs::NoDuplicates); + QStringList files = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, + "plasma/internal/" + type + "/*.desktop", + QStandardPaths::LocateFile); KPluginInfo::List allInfo = KPluginInfo::fromFiles(files);