Make KPackage an implementation details of applets plasma-frameworks
Open, Needs TriagePublic

Description

As we discussed in the Plasma spring, we might get a different applet loading mechanism once applets with precompiled QML can be loaded. This means that the KPackage usage, which is currently part of the public methods and also publicly linked makes such change harder.

For the applets, we no longer need to access the kapckage to get the plugin's metadata, because the applet can simply not embed json metadata and will then get the metadata from kpackage passed to at runtime.

Also, we should get rid of the public KPackage linking, because most plasma-frameworks consumers do not need kpackage directly.
For doing this, we need to rewrite the plasma_install_applet CMake macro. In KF6, we do not need the json conversion logic that the kpackage macro currently has.

alex created this task.Apr 20 2022, 2:30 PM
alex renamed this task from Make KPackage an implementation Detail of plasma-frameworks to Make KPackage an implementation details of applets plasma-frameworks.May 1 2022, 5:50 AM
alex updated the task description. (Show Details)
mart added a subscriber: mart.May 12 2022, 9:39 AM

I'm not convinced this is neede.

nicolasfella moved this task from Backlog to In Progress on the KF6 board.Oct 18 2022, 10:10 PM
alex moved this task from In Progress to Done on the KF6 board.Feb 18 2023, 7:18 PM

We need it for installing plasmoids, but besides that this is done