A. launch a trival .sh w/o sudo
- create a .desktop file on ~/Desktop/
e.g. Lauch.desktop
[Desktop Entry]
Version=1.0
Name=Lauch
Comment=Lauch
Exec=/home/test/ws/launch.sh
Icon=/home/test/smile.png
Terminal=false
Type=Application
Categories=Application;
set path of .sh file you want to run for Exec
set path of picture(png,gif,etc) file for Icon
-
right click on .desktop on Desktop
choose allow launching -
double click .desktop file on Desktop
launch the .sh
B launch a .sh w/ sudo
optinal method 1: enter passwd per time
- create a .desktop file on ~/Desktop/
e.g. Lauch.desktop
[Desktop