I can create to custom bob.desktop and smith.desktop files on my Desktop and customise them with the require command for launching firefox directly into specific profiles. So far so good. I customise each shortcut with a different icon. The custom icons show on the desktop (they are different).
When I launch these shortcuts, they appear in the KDE taskbar but they have the original/defauly Firefox icon and I cannot easily tell them apart. I have been googling and trying things without success. Any ideas?
Thanks for the suggestion. I had considered that but it feels very hacky and given how often web browsers are updated these days it sounds high maintenance. I guess I could script something to handle it every day or something. I’m surprised you cannot do this in a cleaner way
I suspect it’s done with the Icon key in the .desktop file.
According to this page:
As of July 2018, there seem to be some bugs in Unity in how it reads .desktop files. Specifically, the path provided for the Icon field cannot be wrapped in quotes. Even if the path contains spaces, it must not be wrapped in quotes.
On the other hand, it’s worth mentioning here that the path provided for the Exec field must be wrapped in quotes if it contains spaces. If it doesn’t contain spaces, the quotes can be left off. This inconsistency in behavior is horribly confusing and should really be considered a bug.
Changing the Icon field does change the icon displayed for the .desktop file (Firefox - ProfileX.desktop in my use case) but when using it (launching firefox from this .desktop file) the application icon shown in the KDE taskbar continues to be the standard Firefox icon and not the custom one configured in the .desktop file.
@Fabby No I haven’t had time to set it up yet and I am still considering how best to maintain it. I want it automated…even if the RIO is crap Will share when I do!
Apologies, I didn’t realize you also wanted that. How silly of me.
For that you’ll need to specify the --class= parameter in the Exec= line of the .desktop file.
That value specified must then be linked with the .desktop file. This is done by adding the StartupWMClass key, with the same value as specified in the --class= parameter above in the [Desktop Entry] section of the .desktop file.
On a side note, I successfully changed Firefox icon by using “Edit Aplication” menu when right clicking on the Firefox menu entry… So not sure what it changed as the .desktop file in /usr/share/applications/ was not touched.
I didn’t have the multiple .desktop files, I only had one (the original one from Firefox installation), and the icon this way did not change when running Firefox. Maybe when you run multiple then it breaks somewhere.
Hey @Fabby , I started to do this but something occurred to me. Even if I copy the firefox binary, I still need a way modify the icon shown for that binary in the taskbar, given that the icon you specify in the .desktop file has no affect on what is displayed on the taskbar. Make sense or am I missing something?