Ubuntu: Why can I only launch scripts via terminal?



Question:

If I want to execute a script (I already marked it as executable), a text editor opens the script. If I want to choose an app from the list, the system suggests me editors, browsers, etc (not even a terminal). If I am looking for apps online (via Nautilus), all I get are text editors as well.

So the only way is that I open scripts via terminal. But why can't I just double click on them and hit "Run" in the window which pops up?

Thanks for your help!

I found a solution:

Open nautilus - > Preferences -> Behaviour -> Run executable text files when they are opened.


Solution:1

Check your Nautilus settings. I use the German localisation, so be aware that the real English names might be different. Open the file browser (Nautilus). In its Edit menu open the settings dialogue. On the behaviour tab there are check boxes on what to do with executable scripts, letting you choose whether you want to show them, run them, or want to be prompted every time.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »