Commit e70ec569 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
parent 712dbc41
Pipeline #136148 passed with stage
in 14 minutes and 56 seconds
......@@ -317,7 +317,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());"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