I read a lot of topics on this issue here, but there is no answer anywhere. After installing Eclipse, there is no shortcut. A have eclipse.desktop in ~/.local/share/applications and in /usr/share/applications/ with content:

[Desktop Entry]
Name=Eclipse IDE
Comment=Eclipse Integrated Development Environment

But shortcut not displayed anywhere.

If I change Properties -> Permissions -> 'Allow executing file as program' (checkbox ON) I get error message

There was an error launching the application.


You seem to have incomplete value in Exec key. Exec key require the executable name with its path but you provided only the path. According to Exec key - Desktop Entry Specification

The Exec key must contain a command line. A command line consists of an executable program optionally followed by one or more arguments. The executable program can either be specified with its full path or with the name of the executable only. If no full path is provided the executable is looked up in the $PATH environment variable used by the desktop environment. The name or path of the executable program may not contain the equal sign ("="). Arguments are separated by a space.

To validate the desktop entry, you can always use gtk-launch. To use, run:

gtk-launch desktopEntry.desktop

If you get

gtk-launch: no such application desktopEntry.desktop

you have errors either in Exec path or the desktop entry isn't in /usr/share/applications or ~/.local/share/applications.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.