bilelmoussaoui / StartupWMClassFixer

Will help you fix unrecognized/ugly icons in Linux.
GNU General Public License v2.0
30 stars 4 forks source link

Fix by icon theme symlinks? #7

Closed palob closed 8 years ago

palob commented 8 years ago

It looks like some applications can be fixed without editing .desktop files.

I recently introduced a symlink telegram-desktop.svg to Numix Circle.

This fixed the duplicate unthemed icon when running Telegram Desktop (StartupWMClass=telegram-desktop) for me.

However I wasn't successful with any other application. From what I experienced it doesn't work if the StartupWMClass isn't specified in the launcher which was the case for Krita, Okular, Octave, Spyder and GPS Prune.

palob commented 8 years ago

Hmm. maybe I was hallucinating, Telegram is back to the old state.

bilelmoussaoui commented 8 years ago

Well, it's not about the icon line but the StartupWMClass. Even if symlinks can fix that, we can't know if the icon exists in the theme and which sizes are supported.. which makes the task just so hard :p

palob commented 8 years ago

I wonder if in cases where StartupWMClass=icon is set in the launcher a symlink icon.xxx fixes the icon.

But now that even Telegram is back to being unthemed, probably not. Maybe you can try with one?

bilelmoussaoui commented 8 years ago

Yeah, in this case it should work! but not for all the themes, which is not perfect :(

palob commented 8 years ago

Yeah, just wondering whether something can be done from the Numix-Circle side.

bilelmoussaoui commented 8 years ago

The script was created for adding the missing StartupWMClass keys to the desktop file, the best way to fix this is to report that to the application dev! For example Arduino is not behaving correctly, the first window will use the default StartupWMClass but the second window will use an other one...