Multi Icon .desktop Fix —
When running a dock bar on Linux, I’ve had problems with applications I pin to the dock showing up a second time when they’re running.
I ran across a trick to fix this (at least, in some cases). You need to add an entry for “StartupWMClass” to the .desktop file (normally found in either /usr/share/applications/ or ~/.local/share/applications/).
Example: for Netbeans, I added “StartupWMClass=NetBeans IDE 8.0.2” to my ~/.local/share/applications/netbeans-8.0.2.desktop file, but for Google Chrome I needed to add “StartupWMClass=Google-chrome-stable” to my /usr/share/applications/google-chrome.desktop file.
Figuring out what exactly to put in for the value may take a bit of googling. I’m running Elementary OS, which can be a bit of a pain to find support for, but a decent amount of the general Ubuntu troubleshooting answers are helpful, such as in this case.
Categorised as: Linux | Snippets
Comments are disabled on this post