Scripting Lab 1 - PFC-webprojects/ITC-136 GitHub Wiki

Scripting Lab 1

A Bash Script with a Desktop Icon

This project requires three files, all of which may be found in this repository:

  1.   An image file to serve as the desktop icon.  Here we're using Trek920.jpeg.
  2.   An executable file to launch the script.  Here we're using stats.desktop.
  3.   A bash script file.  Here we're using stats.sh.

To run this on a Linux system, place Trek920.jpeg and stats.desktop in the Desktop directory, and place stats.sh in the directory /usr/local/bin .  Note that stats.desktop must have the permissions of an executable file, so run the command

chmod +x stats.desktop

to turn on the executable bit for all users.

Once these steps have been done, users will see the script's icon on their desktop.  Double-clicking it will launch the script in a new terminal window.