Bug 486108 - It should be easier to install plasmoids downloaded manually from the store
Summary: It should be easier to install plasmoids downloaded manually from the store
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Widget Explorer (show other bugs)
Version: 6.0.3
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2024-04-25 12:11 UTC by postix
Modified: 2024-08-22 19:43 UTC (History)
3 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 postix 2024-04-25 12:11:59 UTC
SUMMARY

There are two ways of installing new Plasmoids:
1) by searching the store or
2) choosing a plasmoid locally.

For the latter it opens file picker dialog with a filter for "Plasmoid". 
I've expected to be able to pick the manually downloaded Plasmoid from the store, e. g. [1], which comes compressed as .tar.gz. 
But due to the filter, it's not found and renaming it to *.plasmoid, it's obviously the wrong format and won't install.

It'd be great to find some explanation in Plasma which guides the user on how to install a Plasmoid from a local drive, because right now it's not obvious.

[1] https://store.kde.org/p/2137844
Comment 1 Niccolò Venerandi 2024-08-19 13:10:21 UTC
In order to transform the compressed file into a plasmoid file you can uncompress it, compress the contents of the main folders in a zip file, and change the extension from zip to plasmoid. Or, you can avoid this step entirely and place the main folder (uncompressed) in ~/.local/share/plasma/plasmoids/.

This is not something that the user is expected to know; rather, the plasmoid creator should offer a plasmoid file. You can see that many applets uploaded to the store do allow to download a plasmoid file.
Comment 2 postix 2024-08-19 13:22:42 UTC
(In reply to Niccolò Venerandi from comment #1)
> This is not something that the user is expected to know; rather, the
> plasmoid creator should offer a plasmoid file. You can see that many applets
> uploaded to the store do allow to download a plasmoid file.

But how does a normal user know where to get a "Plasmoid file" from? You say "many" applets, but what are many? The ones I've looked at didn't offer any "plasmoid" file and there's literally no explanation where to look for. 

> In order to transform the compressed file into a plasmoid file you can uncompress it, compress the contents of the main folders in a zip file, and change the extension from zip to plasmoid. Or, you can avoid this step entirely and place the main folder (uncompressed) in ~/.local/share/plasma/plasmoids/.

Is there some Wiki or info page, where one can look these instructions easily up as I haven't found those.

IMO the store should enforce _plasmoids_ for download additionally to tar.gz's, so that not "many" but simply "all" offer a convenient way for the user to install plasmoids manually - if there's no explanation or hint added in Plasma.
Comment 3 Nate Graham 2024-08-20 21:36:09 UTC
I agree with postix here. The issue is that Pling.com accept any random arbitrary file type; it doesn't (and probably can't, due to the way it works), enforce .plasmoid files. Saying that every widget author should do the right thing unfortunately isn't realistic.

Since we know what's needed to make this work (re-compress as .zip and rename), we can just have it done in the background and then accept archive file types in the open dialog.

Heck, re-compressing as zip shouldn't even be needed; KPackage should be able to accept any archived file format.
Comment 4 Bug Janitor Service 2024-08-21 10:26:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4631
Comment 5 Niccolò Venerandi 2024-08-22 19:43:38 UTC
Git commit a1daca3d06ee36a244d750a1d39444573ad1a65a by Niccolò Venerandi.
Committed on 22/08/2024 at 19:43.
Pushed by niccolove into branch 'master'.

Allow manual installation of compressed files as plasmoids

M  +7    -1    components/shellprivate/widgetexplorer.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/a1daca3d06ee36a244d750a1d39444573ad1a65a