Adapt to changes in KDEInstallDirs
kde5/services is kservices5 kde5/servicetypes is kservicestypes5
This commit is contained in:
parent
e5a1f9b309
commit
220da8a4e5
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ void EffectModel::loadEffects()
|
||||||
KService::List offers = KServiceTypeTrader::self()->query("KWin/Effect");
|
KService::List offers = KServiceTypeTrader::self()->query("KWin/Effect");
|
||||||
const KPluginInfo::List configs = KPluginTrader::self()->query(QStringLiteral("kf5/kwin/effects/configs/"));
|
const KPluginInfo::List configs = KPluginTrader::self()->query(QStringLiteral("kf5/kwin/effects/configs/"));
|
||||||
for(KService::Ptr service : offers) {
|
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);
|
KPluginInfo plugin(effectPluginPath);
|
||||||
|
|
||||||
effect.name = plugin.name();
|
effect.name = plugin.name();
|
||||||
|
|
Loading…
Reference in a new issue