Bug 485340 - Widgets should be able to resolve bundled icons and notifyrc files
Summary: Widgets should be able to resolve bundled icons and notifyrc files
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 6.0.3
Platform: unspecified Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-10 19:28 UTC by Diyou
Modified: 2024-04-11 17:52 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 Diyou 2024-04-10 19:28:04 UTC
I asked at https://discuss.kde.org/t/plasmoids-not-resolving-bundled-icons-or-notifyrc/13863

Basically I'd like plasma to resolve icons and notifyrc files from within the plasmoid folder given a folder structure like: 

MyPlasmoid/
├── contents/
│   ├── ui/
│   │   └── main.qml
│   ├── icons/
│   │   └── MyPlasmoid.svg
│   └── notifyrc/
│   │   └── MyPlasmoid.notifyrc
└── metadata.json

This way it would be possible to display a bundled & theme-able icon as the thumbnail in the "Add widgets..." side panel.

To make the notifyrc and icon files available as early as possible I found plasmoids set the "EnabledByDefault" property in the metadata.json and execute a shell script to copy those to fixed locations(e.g. ~/.local/share/knotifications6/ and ~/.local/share/icons/).
This doesn't handle any sort of automatic cleanup of course and is frankly to hacky & insecure for my taste.