Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ubuntu run shell script from desktop

# You'll need a small file for your icon. 
# In ~/Desktop/ make a file ending in .desktop, such as myscript.desktop. 
# Put something like the following inside it.
# NOTE, configure acording to your setup

[Desktop Entry]
Encoding=UTF-8
Name=My Script
Comment=Launch DirSyncPro
Exec=gnome-terminal -e sh /usr/local/bin/myscript.sh
Icon=utilities-terminal
Type=Application

# NOTE! Youll need to give permission for .sh to execute
$ chmod 744 /usr/local/bin/myscript.sh
 
PREVIOUS NEXT
Tagged: #ubuntu #run #shell #script #desktop
ADD COMMENT
Topic
Name
9+9 =