Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
14
rated 0 times [  14] [ 0]  / answers: 1 / hits: 11378  / 2 Years ago, tue, january 25, 2022, 8:43:59

I have a bash script that has permission to execute, but when I double click it in nautilus it won't execute, instead it opens as text in gedit.



In properties it says open with: gedit, and that doesn't change when I click the reset button.



What do I have to do to make it execute? I'm running Ubuntu 13.04. I never had an issue like this one with 12.04 or with any other distribution in general.



EDIT
If I go in terminal and type: ./bashscriptname it runs just fine.


More From » nautilus

 Answers
6

  1. Open Nautilus.

  2. Go to FilePreferences (in Ubuntu 14.04, you might find it under EditPreferences).



    enter image description here


  3. Go to the Behavior tab and click on Run executable text files when they are opened.



    enter image description here



    Or, choose Ask each time to be prompted every time you double click.



[#30822] Wednesday, January 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
imonove

Total Points: 82
Total Questions: 113
Total Answers: 106

Location: Saint Vincent and the Grenadines
Member since Wed, Nov 3, 2021
3 Years ago
;