diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index d51b20315..1daa0f899 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -33,7 +33,6 @@ #include #include #include -#include #include @@ -155,7 +154,7 @@ void KdeConnectKcm::deviceSelected(const QModelIndex& current) KService::List offers = KServiceTypeTrader::self()->query("KdeConnect/Plugin"); QList scriptinfos = KPluginInfo::fromServices(offers); - QString path = KStandardDirs().resourceDirs("config").first()+"kdeconnect/"; + QString path = QStandardPaths::locate(QStandardPaths::ConfigLocation, "kdeconnect/", QStandardPaths::LocateDirectory); KSharedConfigPtr deviceConfig = KSharedConfig::openConfig(path + currentDevice->id()); kcmUi->pluginSelector->addPlugins(scriptinfos, KPluginSelector::ReadConfigFile, i18n("Plugins"), QString(), deviceConfig);