3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 7499
/ 2 Years ago, wed, august 10, 2022, 7:17:17
I did the following procedures to create a application launcher but it doesn't work.
create shell script named
shell.sh
with 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?
More From » scripts