I did the following procedures to create a application launcher but it doesn't work.
create shell script named
shell.shwith the following content:
java -jar foo.jar
- Added execution permission:
sudo chmod +x shell.sh
Created .desktop file in
/usr/share/applications/with the content:
[Desktop Entry] Name=foo Terminal=false Exec=/path/shell.sh Type=Application Icon=/path/icon.png Categories=Utility;
Then I have an application with icon, but it couldn't run, while double click shell.sh works. What's wrong?