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.
-
Can you find "Run in terminal" in the right click menu, under "Open with..." or so?– Volker SiegelOct 14, 2014 at 22:36
-
Nope. Terminal isnt in the list.– David ZavallaOct 14, 2014 at 22:39
-
Maybe I should try Linux Mint, Ubuntu is too slow when launching programs– David ZavallaOct 14, 2014 at 22:42
-
Maybe, but that's a different question (Lubuntu and Xubuntu are other 'fast' options); Do you know what is slow? If it's really starting programs - do you have limited RAM? (Anyway, just some ideas, but that does not belong to this question)– Volker SiegelOct 14, 2014 at 22:49
-
I think 3GB are enough...– David ZavallaOct 14, 2014 at 22:49
1 Answer
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: