Ubuntu – Where to create Desktop entry for Eclipse

desktopeclipselauncherunity

I recently installed eclipse and also created desktop entry file in

/usr/share/applications location as shown in this video
Install Eclipse Luna for Java EE in Ubuntu 14.04 but it didn't work.

And also tried creating in ~/.local/share/applications/ and did what was mentioned there, but still was not able to get the eclipse launcher on the unity laucher.

My Desktop entry for eclipse is

Name=EclipseLuna
Name[en]=EclipseLuna
Comment=Integrated Developement Environment
Type=Application
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
NoDisplay=false
Categories=Development;IDE

Best Answer

You need to add

 [Desktop Entry]

as the first line to your file.

And just in case: Make sure that the file name ends with .desktop

And also make sure you have made it executable.

Related Question