I created a eclipse.desktop and locked it to unity launcherd , when I double click on it on desktop, the eclipse was launched just like launching from unity launcher. But if I start it from command line by "path/to/eclipse", the unity launcher will create a new icon in the launcher bar.
How can I avoid this? Is there a command to open the desktop launcher just like double click on it?
unity --reset
first that will not work in latest ubuntu and for older it will reset all your desktop configuration. And neitherunity ---reset-icons
will help in this case. Please include the content of the desktop file in the question.