By default when we double click on shell/bash script it will open with gedit.
To execute a shell/bash script from GUI use following procedure:
- Right click on the script file and select properties.
- Go to Permissions tab.
- Now enable Execute by clicking Allow executing files as program.
- After updating execute permissions, again double click your script, it will show following popup
- Select Run in Terminal/Run option in above popup, this will start executing script.