nwg-dock-hyprland: Wrong icon. Wrong .desktop file.
This happens with any program that has multiple .desktop files, including Thunar and emacs. I’ll explain on Thunar example.
Thunar file manager has 4 different .desktop files:
> ls /usr/share/applications | grep -i thunar
thunar-bulk-rename.desktop
thunar-settings.desktop
thunar-volman-settings.desktop
thunar.desktop
When I start thunar.desktop, which contains Exec=thunar %U, regular Thunar is started, but (probably due to the same bug I am describing), icon already differs from what nwg-drawer is showing.
If I pin this dock icon, it is stored in .cache/nwg-dock-pinned as ‘thunar’. When I click on this icon to start Thunar, first .desktop file (partial match?) is executed, so it starts Exec=thunar --bulk-rename %F as defined in thunar-bulk-rename.desktop, probably because it is alphabetically first to find.
I am aware it may be tricky to figure out what .desktop file is most adequate for the pinned dock icon or running program, but current matching makes dock unusable – resulting in wrong icon and wrong .desktop file being run.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (9 by maintainers)
Commits related to this issue
- first look for exact 'class.desktop' file #31 — committed to nwg-piotr/nwg-dock-hyprland by nwg-piotr 3 years ago
I’ll install nwg-icon-picker and try but I am 99% certain that drawer picks the right icon, when I manually follow the paths, finder like icon is the only one named org.xfce.thunar. Let me test and I’ll report back.
If I understand well, this would be a partial solution. Let me make some experiments.