When adding an application launcher icon to a panel, I can change the icon displayed for that application by right-clicking it, opening Properties, and then clicking on the icon to select a new one. I use that feature to have multiple options to launch Firefox with different profiles (it’s faster than opening a generic Firefox instance and then switching profile every time). However, when I do launch the application, the icon that gets displayed in the task manager is the regular Firefox icon, and not the custom icon that I configured.
Is it possible to display custom icons in the task manager when an application is launched from a .desktop file that has a different Icon value set?
and change the icon for it. To do that, I had to take ownership of the file and its directory because of permissions. After changing the icon, I restarted the machine, and the new icon was displayed on the task manager whenever I was using Firefox. Oddly, even though I have FF in the quick launch panel, when I run FF, it shows up as a second icon on the task manager, so my panel shows two FF icons, but I’m okay with that.
Just realized that the icon will revert to the default whenever the app is updated via regular Discover updates. Changing it might get a bit old. Maybe they’ll make this easier with a future KDE Plasma upgrade.
to move things from /user/share... to ~/.local/share... you can use the kpackagetool5 --install command and the system should make use of your copy rather than the system copy.
keep in mind tho, that updates to the system copy will not be reflected in your local copy unless you run this again.
so while it might help reduce the frequency of your having to change it each time, you will still have to do maintenance of it on your own.
Thank you! However, I’m too noob to know how to do that without specific instructions. If you’re willing to provide those, I would try them out, though I understand if that is too complex or you rather not.
i did this successfully for the digital clock .qml but i don’t know that it would work for a flatpak file
all i know is that when the .qml was located in my ~/.local/share... directory it took priority over the official one in /usr/share... and i could make edits to my copy that persisted.
I use the amazing Candy Icons from the Sweet KDE Theme and installed Firefox, Thunderbird, and Spotify with snap. Via a cron job and with autostart, I have a script called icon_fixer.sh (run by sudo) that specifies the Task Manager panel icons every hour (cron) and at log in (autostart). In my home directory, I made a folder called icons with the icons I want to use.
For what it’s worth, my go-to solution for customizing task manager icons is using Window Rules in KWin to match the window in its “in use” state, and then force a desktop file name to match a desktop file set to the icon I want.
At least for how I use my device, that has the advantage of working regardless of how that window comes to be - restored Firefox session, launched from app launcher, or any other way.
As an example, my Todoist desktop entry, named todoist.desktop: