4

I'm trying to execute a .sh file, but its opening in gedit. I permitted it to be "executed as program", but it's still not working. I'm on a machine running Ubuntu 14.04LTS.

kelvinelove
  • 1,617
  • 1
  • 16
  • 26
David Zavalla
  • 43
  • 1
  • 4

1 Answers1

5

Setting the "executed as program" permission is not enough as there's a global Nautilus preference that alter the behavior when you click on an executable text file.

Open the Nautilus Preferences (Edit -> Preferences) and select the Behavior tab:

enter image description here

Select the "Ask each time" option to get the following popup when you click on your .sh files:

enter image description here