Duplicate icons for manually created GNOME launcher items
Solution 1:
To save sifting through the thread mentioned by @earthmeLon, you need to do the following:
- Launch the application
- Fire up a terminal and run
xprop WM_CLASS
. Click on the window of the the application that is running with a duplicate icon. - You'll get some output like
WM_CLASS(STRING) = "Navigator", "Firefox"
. Choose one of the classes, egFirefox
in this example - Add the class as the value of
StartupWMClass
in the.desktop
file. For example,StartupWMClass=Firefox
- Save the
.desktop
file, close the application and re-open it. There should now only be 1 icon in the launcher
Solution 2:
StartupWMClass
You can use StartupWMClass to group windows by class.
See this thread for additional information.