When I double-click on a script in Nautilus to run it, the script just opens in my text editor with no option to run it. Using Nautilus, how do I run executable text files and/or scripts?
Ubuntu – How to run executable scripts in Nautilus
execute-commandnautilus
Best Answer
Open Nautilus.
Open this from the menu bar:
Select the 'Behavior' tab.
Select "Ask each time" under "Executable Text Files".
Select the "Permissions" tab, and make sure "Allow executing file as program" is selected.
Close the window.
Now you can double-click your executable text file in Nautilus to be asked whether to execute or edit your script.
Answer credit: Nur