Summary: | Custom icon for plasma widget | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Jiri Tyr <jiri.tyr> |
Component: | general | Assignee: | David Edmundson <kde> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | kde, kde, nate, notmart, plasma-bugs, simonandric5 |
Priority: | NOR | ||
Version: | master | ||
Target Milestone: | 1.0 | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Jiri Tyr
2017-12-27 12:03:32 UTC
which icon do you mean? I mean the icon which is shown in the "Widgets" slide out panel after I click on the "Add widgets". The icon which is normally indicated by the "icon=..." in the metadata.desktop file. The "icon=..." value can be either an icon name in which case the system icon is used (/usr/share/icons/<theme>/<category>/<size>/<icon>.svg) OR it can be an absolute path. If the widget was installed into the user home directory, it's not possible to define correct absolute path in the metadata.desktop file (which is distributed with the widget) because each user has different path (/home/<user>/.local/share/plasma/plasmoids/<widget>/<icon>.png). This is why I suggest to search for the icon in the widget directory first before trying to search for the icon in the system theme. Marco and/or Kai isn't there an undocumented way to do this? I recall one of you helping Scott Harvey with this a while back. screenshot.png in the package root dir. Well there you have it. :) |