After an initial adverse reaction to Unity I have now decided to embrace it. I have a home brewed java app that I use a lot so I decided to add it to the Dash and pin it's icon in the launch bar. I created a .desktop file located in
/usr/share/applications (or in
~/.desktop/share/applications) and the application appeared in the Dash with the correct icon and in the correct subset (Office). When I clicked the app's icon it launched, put an icon in the launch bar and opened on the desktop as expected. However the icon in the launch bar was not correct. In fact it was bizarre. It turned out to be a small .jpg file (which happened to be in the same location as the correct icon). It was listed as the first file in the icon directory but renaming it simply changed the icon in the launch bar to something like a ghost (I think this is an icon already assigned to something else) which is certainly not in my icon directory.
The app is launched via a bash script which changes the current directory and then calls the app via either a jar file or a set of class files. I have varied the icon type and size but the problem remains.
The app is entirely useable but the problem is annoying. Can anyone shed any light on this problem?