To execute a script, I have to:
- Write the script
- Make it executable
Double click it, which shows this window:
- Click the "Run" button.
How can I execute the script directly, without showing the dialog?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityTo execute a script, I have to:
Double click it, which shows this window:
How can I execute the script directly, without showing the dialog?
Depending on which Ubuntu version you have,
In Nautilus, go to this menu:
Edit → Preferences
In Nautilus, go to this menu:
Files → Preferences
in the 'Behaviour' tab, enable "Run executable text files with they are opened"
If you prefer a command:
dconf write /org/gnome/nautilus/preferences/executable-text-activation "'launch'"
Note: Both GUI and command line methods work only for Nautilus (the default graphical file manager in Ubuntu)