*** The icon of Gimp doesn't change if you change icon theme under Wayland session in Icons-Only Task Manager Widgets. *** SUMMARY STEPS TO REPRODUCE 1. Go to System Settings 2. Change the icon theme OBSERVED RESULT The Gimp icon remain the same. EXPECTED RESULT To have a custom icon of Gimp. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Solus - Plasma KDE Plasma Version: 6.4.4 KDE Frameworks Version: 6.16.0 Qt Version: 6.9.1 ADDITIONAL INFORMATION
This means the icon theme you're switching to either doesn't have a custom icon for GIMP, or else it does, but the name of its custom GIMP icon doesn't match the name of the used by GIMP itself. An example of this would be if GIMP is from Flatpak and uses the icon name "org.gimp.GIMP", while the icon theme only has an icon named "gimp".
(In reply to Nate Graham from comment #1) > This means the icon theme you're switching to either doesn't have a custom > icon for GIMP, or else it does, but the name of its custom GIMP icon doesn't > match the name of the used by GIMP itself. An example of this would be if > GIMP is from Flatpak and uses the icon name "org.gimp.GIMP", while the icon > theme only has an icon named "gimp". No, I have triple checked the name of Gimp icon (I'm an icon maker so I know my stuff around naming), and it only happens in Wayland. In Xorg the icon changes.
Hmm, maybe it's something else, then. My guess is that on X11, GIMP changes its icon at runtime, while on Wayland it doesn't (there's a protocol for this, but it probably doesn't implement it). But let's get specific. When you say "The Gimp icon remain the same.", *where* specifically does the icon fail to change? Only the Task Manager, or anywhere else too? Is this with a pinned-but-not-running icon, or the icon for the running app? Can you do a bit of troubleshooting to see which places are affected? Thanks!
(In reply to Nate Graham from comment #3) > Hmm, maybe it's something else, then. > > My guess is that on X11, GIMP changes its icon at runtime, while on Wayland > it doesn't (there's a protocol for this, but it probably doesn't implement > it). > > But let's get specific. When you say "The Gimp icon remain the same.", > *where* specifically does the icon fail to change? Only the Task Manager, or > anywhere else too? Is this with a pinned-but-not-running icon, or the icon > for the running app? > > Can you do a bit of troubleshooting to see which places are affected? > > Thanks! Hi, It only fail to change in Task manager under Wayland. In the different menus/launchers it's all good. pinned/unpinned makes no difference. But I digged it a little more when I realize that I'm running Gimp with "GDK_BACKEND=x11" environment variables to make Global menu working. So GDK_BACKEND=x11 in Wayland with Gimp trigger this bug.
Can you provide an example of an icon theme that exhibits this problem when GIMP is run with GDK_BACKEND=x11?
(In reply to Nate Graham from comment #5) > Can you provide an example of an icon theme that exhibits this problem when > GIMP is run with GDK_BACKEND=x11? Papirus is a good example (it's the most comprehensive icon theme out there). I also tried other icon themes including my own.
Created attachment 184039 [details] The Gimp icopn didn't change with the rest of custom icon theme.
If you quit GIMP, does the icon in the Icons-Only Task Manager change to the expected Papirus icon?
(In reply to Nate Graham from comment #8) > If you quit GIMP, does the icon in the Icons-Only Task Manager change to the > expected Papirus icon? Nope. If I pinned it and quit it become a blank/empty icon instead. Moreover if I try to start Gimp Pinned to the task manager, Gimp refuses to launch. I'll upload a picture of the error.
Created attachment 184079 [details] Error when trying to start Gimp pinned.
Ok, so if you un-pin it from the Task Manager and then search for it in Kickoff, what icon does it show there?
(In reply to Nate Graham from comment #11) > Ok, so if you un-pin it from the Task Manager and then search for it in > Kickoff, what icon does it show there? Then icon is normal. I'll upload a picture of it.
Created attachment 184081 [details] Gimp in search shows normal icon (papirus)
Thanks. Is there a custom .desktop file for GIMP in ~/.local/share/applications/? If so, can you attach it? And can you additionally attach the GIMP .desktop file in /usr/share/applications/?
Created attachment 184111 [details] local gimp .desktop
Created attachment 184112 [details] system .desktop
And in your custom .desktop file for GIMP, if you change Exec=env GDK_BACKEND=x11 gimp-3.0 %U to Exec=gimp-3.0 %U And then restart, is the issue fixed?
(In reply to Nate Graham from comment #17) > And in your custom .desktop file for GIMP, if you change > > Exec=env GDK_BACKEND=x11 gimp-3.0 %U > > to > > Exec=gimp-3.0 %U > > And then restart, is the issue fixed? Yes, it fix the issue.
Then I'd say it's a "then don't do that" situation. :) The system is working as expected, and you've found an interesting quirk where a manually-applied workaround causes 3rd-party icon theming to behave unexpectedly. This isn't a supported setup, I'm afraid.