Is there a way to execute shell scripts automatically using gnome-open? If I call
in the terminal, the script opens in the default text editor.
However the shell-script is executed directly by double-click from Nautilus.
You should be able to use this execute the file:
or to get another terminal to execute it with:
./ means look in the current directory, this is not usually required if prefixed by a command, which would would look in the current directory if no folders are specified.
Make sure it is executable with
chmod +x script.sh.
Nautilus can do other things instead of just running it, look in the preferences under Behaviour: