Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add `StartupWMClass` to .desktop for easier window-app association #16791
Description of the Change
Just adds a
Feb 27, 2018
Did this work for anyone? I had to make "Atom" lowercase for it to work for me. Prior to that my atom windows would have no icon if launched from a terminal etc.
I'm happy to submit a new pull request to change this, as long as it won't stop it working for other users. I'm on Ubuntu 16.04
Hi @Evpok, yes that's the same for me, but one of those is the class name and one is the class. I recently discovered this via xdotool. For example, with Firefox:
~ xprop | grep WM_CLASS WM_CLASS(STRING) = "Navigator", "Firefox" ~ xdotool search --onlyvisible --class "Navigator" ~ xdotool search --onlyvisible --classname "Navigator" 62914577 ~ xdotool search --onlyvisible --class "Firefox" 62914577 ~ xdotool search --onlyvisible --classname "Firefox" ~
So it would seem that application icons are matched via the classname rather than the class. Note, you can't actually test this out with xdotool for Atom as it does a case-insensitive search.
I double checked and atom definitely needs to be lowercase for my system to match it. If both work on yours, then perhaps it would be safe to switch it to lowercase then?