Bug 453159 - Unable to set custom top-level icon in Service Menu
Summary: Unable to set custom top-level icon in Service Menu
Status: CONFIRMED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.109.0
Platform: Kubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-28 18:29 UTC by Whtyger
Modified: 2024-05-16 11:53 UTC (History)
9 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 Whtyger 2022-04-28 18:29:57 UTC
SUMMARY
"Icon" parameter which is set in [Desktop Entry] section of the ServiceMenu desktop file is ignored.

STEPS TO REPRODUCE
An example of ServiceMenu with submenu:
------------------------------
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=all/all;
Actions=Create;Check;
Icon=document-encrypted
X-KDE-Submenu=md5 sums
X-KDE-Priority=TopLevel

[Desktop Action Create]
Name=Create md5 sums
Icon=document-new-from-template
Exec=dolphin-md5-create.sh %F

[Desktop Action Check]
Name=Check md5 sums
Icon=dialog-ok-apply
Exec=dolphin-md5-check.sh %f
------------------------------

OBSERVED RESULT
Icon for the top-level entry in the menu is taken from its submenu. In the case of aforementioned desktop file the icon which is shown is "document-new-from-template.svg".

EXPECTED RESULT
Icon for the top-level entry should be "document-encrypted.svg".

SOFTWARE/OS VERSIONS
OS Version: Kubuntu 22.04
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Comment 1 Jayes 2022-05-04 05:55:02 UTC
I can confirm this for Kubuntu 22.04, also when using the backports ppa.
The menu's icon is ignored. Instead the icon for the first sub-item is shown.