Как создать действительный ярлык для Eclipse?

. Я читал много тем по этому вопросу здесь, но ответа нигде нет. После установки Eclipse ярлыка нет. Имеется eclipse.desktop в ~ / .local / share / Applications и в / usr / share / Applications / с содержанием:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Eclipse IDE
Comment=Eclipse Integrated Development Environment
Icon=/home/n199a/eclipse/java-2020-06/eclipse/icon.xpm
Exec=/home/n199a/eclipse/java-2020-06/eclipse/
X-Desktop-File-Install-Version=0.23

Но ярлыка нет отображается где угодно.

Если я изменяю Свойства -> Разрешения -> ' Разрешить выполнение файла как программы ' (флажок включен) Я получаю сообщение об ошибке

Произошла ошибка при запуске приложения.

3
задан 12 July 2020 в 17:21

1 ответ

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.

5
ответ дан 30 July 2020 в 22:08

Другие вопросы по тегам:

Похожие вопросы: