I decided to use a midi controller for certain tasks, so I've used midi2input for this.
The application compiled with no errors however, when I click on the icon I get:
Invalid desktop entry file: '~/.local/share/applications/m2i.desktop
These are the contents of the desktop entry:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=true
Exec=/usr/local/bin/
Name=Midi2Input
Icon=/home/emm/midi2input/build/res/icons/hicolor/512x512/apps/m2i-light.png
Any ideas?
The png exists. I've also just altered the Exec line as you suggested and I've also re-built it and it's still giving the same error.
Current desktop entry:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=/usr/local/bin/m2i
Name=midi2input
DBusActivatable=false
Icon=/home/emm/midi2input/build/res/icons/hicolor/512x512/apps/m2i-light.png
StartupNotify=true
emm@i3:~$ ls -al /usr/local/bin/m2i
-rwxr-xr-x 1 root root 606864 Jul 21 12:28 /usr/local/bin/m2i
emm@i3:~$ ls -al /home/emm/midi2input/build/res/icons/hicolor/512x512/apps/m2i-light.png
-rw-rw-r-- 1 emm emm 10010 Jul 22 08:05 /home/emm/midi2input/build/res/icons/hicolor/512x512/apps/m2i-light.png
emm@i3:~$
Если вы уверены, что указанный файл Exec
правильный, прокомментируйте строки в файлах .desktop
и попробуйте запустить m2i
], пока вы не определите виновника.
Вы можете комментировать один за другим или комментировать их в виде групп (метод деления пополам).
Пожалуйста, опубликуйте вывод
ls -al /usr/local/bin/m2i
ls -al /home/emm/midi2input/build/res/icons/hicolor/512x512/apps/m2i-light.png
You have not specified the full path of the executable.
You have only put:
Exec=/usr/local/bin/
See the documentation on Desktop Entry Specification - GNOME Developer
Exec
Program to execute, possibly with arguments. See the
Exec
key for details on how this key works. TheExec
key is required ifDBusActivatable
is not set totrue
. Even ifDBusActivatable
istrue
,Exec
should be specified for compatibility with implementations that do not understandDBusActivatable
.
Not to be confused with:
Name
Specific name of the application, for example "Mozilla".