I have downloaded Aptana Studio 3 and created the following launcher item for using Alacarte:
[Desktop Entry] Comment= Terminal=false Name=Aptana Studio 3 Exec=AptanaStudio3 Type=Application Icon=/opt/Aptana-Studio-3/icon.xpm
Then, when I add the icon to the favorites and opens the Aptana Studio 3 I get two icons for it, one for launching new instances, and one for the currently running instance as per the following screenshot:
How do I force the application to use the same icon added to the favorites?
To save sifting through the thread mentioned by @earthmeLon, you need to do the following:
xprop WM_CLASS. Click on the window of the the application that is running with a duplicate icon.
WM_CLASS(STRING) = "Navigator", "Firefox". Choose one of the classes, eg
Firefoxin this example
.desktopfile. For example,
.desktopfile, close the application and re-open it. There should now only be 1 icon in the launcher