Commit 79fadcc6 authored by Alexander Lohnau's avatar Alexander Lohnau 💬 Committed by Vlad Zahorodnii
Browse files

Fix loading of effect if plugin defined X-KDE-Library

Otherwise we get the filename to the library and not the KPackage.

The plugin having this set is most likely a leftover, because KPackage plugins
to not need to define a library.

BUG: 449881


(cherry picked from commit e70ec569)
parent f065d74a
Pipeline #136149 passed with stage
in 14 minutes and 15 seconds
......@@ -316,7 +316,7 @@ void EffectsModel::loadJavascriptEffects(const KConfigGroup &kwinConfig)
const QString pluginKeyword = plugin.value(QStringLiteral("X-KDE-PluginKeyword"));
if (!pluginKeyword.isEmpty()) {
QDir package(QFileInfo(plugin.fileName()).dir());
QDir package(QFileInfo(plugin.metaDataFileName()).dir());
package.cd(QStringLiteral("contents"));
const QString xmlFile = package.filePath(QStringLiteral("config/main.xml"));
const QString uiFile =package.filePath(QStringLiteral("ui/config.ui"));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment