How to execute a bash script in Ubuntu by double clicking it

> Ensure that your script begins with the correct command. For ex.


> Install dconf Editor:

sudo apt-get install dconf-editor

> Open dconf Editor

> Navigate to org > gnome > nautilus > preferences

> Find executable-text-activation and from the dropdown menu select launch or ask.