Bug 386509 - plasmapkg2 does not copy desktop file to service location
Summary: plasmapkg2 does not copy desktop file to service location
Status: RESOLVED FIXED
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: libplasma (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Lohnau
URL:
Keywords:
: 378250 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-11-03 22:20 UTC by LinG
Modified: 2022-07-21 05:43 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LinG 2017-11-03 22:20:12 UTC
When I install a kwin script using:

plasmapkg2 --type kwinscript -i test

It works fine but for some reason I don't get the gear icon that allows to interact with the ui.

To reproduce:

1. copy the default videowall kwin script that is located here /usr/share/kwin/scripts/videowall to somewhere

2. rename all the names (Name, X-KDE-PluginInfo-Name, X-KDE-PluginKeyword and X-KDE-ParentComponents) inside metadata.desktop to something else such as "test"

3. install the test package using: plasmapkg2 --type kwinscript -i "name"

4. open kwin scripts and observe that there is no gear icon for the test script while the default videowall script does have a gear icon.
Comment 1 Martin Flöser 2017-11-04 14:02:58 UTC
The desktop file needs to be copied to service location for config to be found. This might be missing in plasmapkg.
Comment 2 LinG 2019-03-05 11:30:46 UTC
This problem also exists with `kpackagetool5` just as with `plasmapkg2`
Comment 3 Piotr Dobrogost 2019-03-31 17:25:25 UTC
Any update on this?
Is there a way to bring this into the radar of someone active in this area?

I came here from issue 79 of kwin-tiling – „No config options“ (https://github.com/kwin-scripts/kwin-tiling/issues/79)


(In reply to Martin Flöser from comment #1)
> The desktop file needs to be copied to service location for config to be
> found.

Is this documented somewhere?

> This might be missing in plasmapkg.

You mean this should be handled by plasmapkg during installation of a package but it's not?
Comment 4 Nate Graham 2020-12-01 18:26:20 UTC
*** Bug 378250 has been marked as a duplicate of this bug. ***
Comment 5 Alexander Lohnau 2022-07-21 05:43:07 UTC
By now one should use X-KDE-ConfigModule to point to the config plugin that should be loaded. The desktop file bases plugin loading is deprecated.