Bug 452936

Summary: Top-level icon is missing in custom Service Menus
Product: [Applications] dolphin Reporter: Whtyger <MetamAdeptus>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kfm-devel, nate, pecunia
Priority: NOR    
Version: 19.12.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot with Service Menu

Description Whtyger 2022-04-24 07:54:16 UTC
Created attachment 148337 [details]
Screenshot with Service Menu

SUMMARY
If Service Menu have got submenu, its submenu icons are displayed, but top-level icon is absent.

STEPS TO REPRODUCE
An example of Service Menu with submenu:
------------------------------
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=all/all;
Actions=Create;Check;
Icon=dialog-ok-apply
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
Is shown on the attached screenshot.

EXPECTED RESULT
Top-level icon should be shown as the rest icons of context menu and the icons of submenu.

SOFTWARE/OS VERSIONS
OS Version: Kubuntu 20.04.4 
KDE Plasma Version: 5.18.8
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Comment 1 Nate Graham 2022-04-25 17:59:47 UTC
You're using an extremely old version of Dolphin which is no longer supported. I would strongly recommend upgrading to the latest version (which is 22.04) as of right now and trying again. If you can reproduce the issue with that version or a later one, feel free to re-open the bug report. Thanks!
Comment 2 Whtyger 2022-04-26 17:48:23 UTC
I tested Kubuntu 22.04 from pendrive (with KDE Gear 21.12.3) and this issue with missing icon is fixed indeed.
HOWEVER, "Icon" parameter which is set in [Desktop Entry] section is ignored, top-level icon is taken from [Desktop Action] section instead. In case of Service Menu I provided in my original post "document-new-from-template.svg" icon is shown in the top-level entry of the menu, not "dialog-ok-apply.svg".
I don't know whether it is an intended behavior or it is still a bug.
Comment 3 Nate Graham 2022-04-26 18:11:50 UTC
Regardless, can you file a new bug report for it?
Comment 4 Jayes 2022-05-02 18:48:02 UTC
"I don't know whether it is an intended behavior or it is still a bug."

Obviously this is still a bug. I can confirm this problem still exists on Kubuntu 22.04.
Comment 5 Whtyger 2022-05-03 09:47:15 UTC
As Nate Graham proposed, I created new bug report for this issue here: https://bugs.kde.org/show_bug.cgi?id=453159