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.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
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: