Bug 505571

Summary: Servicemenu submenu icon shows application icon instead of specified icon
Product: [Applications] dolphin Reporter: cauamachado51
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: dolphin-bugs-null, kdedev
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description cauamachado51 2025-06-13 16:07:27 UTC
SUMMARY
o menu de contexto do dolphin não mostra ícone do submenu.

STEPS TO REPRODUCE
1. crie ~/.local/share/kio/servicemenus/meu_menu_de_contexto.desktop
2. insira
```
[Desktop Entry]
Name=Minhas Ações
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=inode/directory;text/plain;
X-KDE-Priority=TopLevel
X-KDE-Submenu=Minhas Ações
Icon=plasma-symbolic
Actions=abrirComKate;openInVSCode

[Desktop Action abrirComKate]
Name=Open in Kate
Name[pt]=Abrir no Kate
Icon=kate
Exec=kate %u

[Desktop Action openInVSCode]
Name=Open in VS Code
Name[pt]=Abrir VS Code
Icon=com.visualstudio.code
Exec=code %u
```

OBSERVED RESULT
o submenu tem o ícone kate.

EXPECTED RESULT
ter o ícone plasma-symbolic.

SOFTWARE/OS VERSIONS
Linux: Manjaro Linux
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Comment 1 TraceyC 2025-06-19 16:31:14 UTC
Translated

SUMMARY
The Dolphin context menu does not show the submenu icon.

STEPS TO REPRODUCE
1. create ~/.local/share/kio/servicemenus/meu_menu_de_contexto.desktop
2. Enter

(the Desktop Entry contents)

OBSERVED RESULT
The submenu has the Kate icon.

EXPECTED RESULT
have plasma-symbolic icon.
Comment 2 TraceyC 2025-06-19 18:07:16 UTC
Note that on my system, ~/.local/share/kio does not exist by default, I created it
I tested with the Breeze Dark and Breeze icons

I created the desktop entry and attempted to reproduce - I can reproduce
Right click a file that could open in Kate or VS Code, like a .txt file
The icon for the custom right click submenu "Minhas Ações" shows the Kate icon

Per the docs, icons by name are found in /usr/share/icons/
https://develop.kde.org/docs/apps/dolphin/service-menus/

The only icon schemes that have 'plasma-symbolic' are breeze and breeze-dark
Unfortunately this isn't working with those icon sets