Skip to content

🍒 plasma/pluginloader: Repair loading plasmoid plugins on add from explorer

Arjen Hiemstra requested to merge work/cherry-pick-e1a4cce1 into Plasma/6.1

In some cases, PluginLoader::loadApplet can be passed a path instead of a plugin name. 70fea2c4 removed the local metadata cache but also removed the logic to turn a path into a plugin name. Restore the plugin name handling so we can load the right plugin again when an applet gets added from the Widget Explorer.

Ultimately this restores behaviour that I am unsure is correct, I think it would be better if either the function only accepted Plasmoid names and the relevant calling code was changed, or we use the KPackage metadata to get the plugin to load somehow.

BUG: 488592

(cherry picked from commit e1a4cce1)

Co-authored-by: Arjen Hiemstra ahiemstra@heimr.nl

Merge request reports