2

I've downloaded the Eclipse C/C++ IDE for 2018-09 and installed it by extracting the package in a folder. So I've created the following Eclipse-CDT.desktop file in /home/username/.local/share/applications/ to add the eclipse to the gnome menu and the launcher.

[Desktop Entry]
Version=1.0
Name=Eclipse-CDT
Comment=C\C++ IDE
Type=Application
Categories=Development;IDE;
Exec=/home/username/apps/eclipse/eclipse
Terminal=false
StartupNotify=true
Icon=/home/username/apps/eclipse/icon.xpm

I've also changed the icon.xpm with the same dimensions. Consequently theEclipse-CDT with the new icon appears in the gnome menu and then we are able to add it to the launcher.

The problem is when I open it from menu or launcher, the former icon(which was removed) is appeared in the launcher as an active app, while the newly added one remains inactive. Why?

I'm using Ubuntu 18.04.

pomsky
  • 70,557

1 Answers1

0

Renaming the .desktop file to the eclipse.desktop solved this problem:

cd ~/.local/share/applications/
mv Eclipse-CDT.desktop eclipse.desktop