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.
Asked
Active
Viewed 5,185 times
1 Answers
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:

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

Sylvain Pineau
- 63,229