Adapt to changes in KDEInstallDirs

kde5/services is kservices5
kde5/servicetypes is kservicestypes5
This commit is contained in:
Aleix Pol 2014-04-26 19:24:51 +02:00
parent e5a1f9b309
commit 220da8a4e5

View file

@ -223,7 +223,7 @@ void EffectModel::loadEffects()
KService::List offers = KServiceTypeTrader::self()->query("KWin/Effect");
const KPluginInfo::List configs = KPluginTrader::self()->query(QStringLiteral("kf5/kwin/effects/configs/"));
for(KService::Ptr service : offers) {
const QString effectPluginPath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kde5/services/"+ service->entryPath(), QStandardPaths::LocateFile);
const QString effectPluginPath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kservices5/"+ service->entryPath(), QStandardPaths::LocateFile);
KPluginInfo plugin(effectPluginPath);
effect.name = plugin.name();