Bug 452936 - Top-level icon is missing in custom Service Menus
Summary: Top-level icon is missing in custom Service Menus
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 19.12.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-24 07:54 UTC by Whtyger
Modified: 2022-05-03 09:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot with Service Menu (38.20 KB, image/jpeg)
2022-04-24 07:54 UTC, Whtyger
Details

Note You need to log in before you can comment on or make changes to this bug.
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