I have an eclipse installation that was not installed through the repositories. To be able to launch it conveniently,
- I symlinked the path to eclipse to
/usr/bin, (so that it can be started by running the command
eclipsefrom a terminal)
- I created a
.desktopfile, to start it from the dash.
- After starting from the dash, I locked the icon that appeared to the Launcher.
This all works, the icon specified in the
.desktop file shows (after some trial and error) and everything.
However, when I run
eclipse from terminal, it does not use the item that I locked to the Launcher, but creates a new one. When I start Eclipse through the dash, it does use the item locked to the Launcher. Furthermore, when running
eclipse from the terminal, it apparently does not know which icon to use, since it shows a grey sheet with a question mark instead.
I would like Ubuntu to recognize that I'm executing the same command in both cases, and have it treat them identically. How can this be achieved?