Bug 495740

Summary: Can't assign an icon to a services submenu in Dolphin
Product: [Applications] dolphin Reporter: Jayes <pecunia>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: kdedev, kfm-devel
Priority: NOR    
Version: 24.08.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jayes 2024-11-03 08:49:19 UTC
SUMMARY

In dolphin I am trying to use a combination of services put in a submenu. Like this:

context-menu
        |
        submenu
                  |
                   service 1
                   service 2

Assigning an icon to each of the services works as expected, but assigning an icon to the submenu does not. The submenu always shows the icon that is used with the first action listed  after 'Actions' under [Desktop Entry] - even if no icon is set for the submenu.

For example:
---------------------------------------------------------------------
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/x-cd-image;model/x.stl-binary;application/x-raw-disk-image;
Actions=mount;unmount
X-KDE-Priority=TopLevel
X-KDE-StartupNotify=false
X-KDE-Submenu=Un/Mount iso image
Icon=/path/to/submenu.png

[Desktop Action mount]
Name=Mount
Icon=media-mount
Exec= do stuff

[Desktop Action unmount]
Name=Unmount
Icon=media-eject
Exec= do other stuff
---------------------------------------------------------------------

In this example the submenu (labeled 'Un/Mount iso image') will always be shown with the 'media-mount' icon set under [Desktop Action mount] because that is the first action listed under [Desktop Entry].
 
STEPS TO REPRODUCE
1. See example

OBSERVED RESULT
Submenu does not get its own icon

EXPECTED RESULT
Submenu does get its own icon

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0


I remember reporting this a long time ago for plasma 5, but can't find that bug report now.