GIT_SILENT Make kwin effects namespace not end with trailing slash

For the static plugins an exact string match is required
This commit is contained in:
Alexander Lohnau 2021-10-24 18:10:31 +02:00 committed by Vlad Zahorodnii
parent f61097f3cb
commit b1e121397d
2 changed files with 2 additions and 2 deletions

View file

@ -195,7 +195,7 @@ void ScriptedEffectLoader::clear()
PluginEffectLoader::PluginEffectLoader(QObject *parent) PluginEffectLoader::PluginEffectLoader(QObject *parent)
: AbstractEffectLoader(parent) : AbstractEffectLoader(parent)
, m_queue(new EffectLoadQueue< PluginEffectLoader, KPluginMetaData>(this)) , m_queue(new EffectLoadQueue< PluginEffectLoader, KPluginMetaData>(this))
, m_pluginSubDirectory(QStringLiteral("kwin/effects/plugins/")) , m_pluginSubDirectory(QStringLiteral("kwin/effects/plugins"))
{ {
} }

View file

@ -331,7 +331,7 @@ void EffectsModel::loadJavascriptEffects(const KConfigGroup &kwinConfig)
void EffectsModel::loadPluginEffects(const KConfigGroup &kwinConfig) void EffectsModel::loadPluginEffects(const KConfigGroup &kwinConfig)
{ {
const auto pluginEffects = KPluginMetaData::findPlugins(QStringLiteral("kwin/effects/plugins/")); const auto pluginEffects = KPluginMetaData::findPlugins(QStringLiteral("kwin/effects/plugins"));
for (const KPluginMetaData &pluginEffect : pluginEffects) { for (const KPluginMetaData &pluginEffect : pluginEffects) {
if (!pluginEffect.isValid()) { if (!pluginEffect.isValid()) {
continue; continue;