Bug 514020

Summary: Use "X-Plasma-API-Minimum-Version" as blocker for adding new AppletQuickItem.
Product: [Frameworks and Libraries] libplasma Reporter: Mark Capella <markjamescapella>
Component: libplasmaAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: nate, notmart
Priority: NOR    
Version First Reported In: 6.5.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mark Capella 2025-12-31 20:50:42 UTC
I'd like my plasmoid to be able to "refuse to load" based on the setting I put
into it's metadata.json field "X-Plasma-API-Minimum-Version" for it's
major / minor / micro version numbers.

This doesn't happen currently. The version isn't checked until some other
general error condition is first detected (1).

I'd rather it trigger an immediate failure. Devs creating plasmoids that
depend on specific features introduced at specific Plasma versions
will be more stable.

(1) https://invent.kde.org/plasma/libplasma/-/blob/master/src/plasmaquick/appletquickitem.cpp?ref_type=heads#L549-565
Comment 1 Nate Graham 2026-01-06 20:14:47 UTC
I think this is a good idea! Are you interested in submitting a patch for it?
Comment 2 Mark Capella 2026-01-07 01:38:11 UTC
Sure. Give me a couple days :)