Ask Your Question
4

How do I execute shell scripts in nautilus?

asked 2013-01-19 07:00:22 -0600

Lars Stokholm gravatar image

updated 2013-06-02 23:58:58 -0600

FranciscoD_ gravatar image

How the h.... do I execute shell scripts in Fedora 18?

  • I don't want to do it from Terminal.
  • The script is an .sh file and is executable (mode -rwxrwxr-x.)
  • I did try double clicking it, it just opens up in gedit.
  • I did try right clicking it; no other options.

I can't believe I'm asking this question...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-01-19 07:30:43 -0600

domg472 gravatar image

updated 2013-01-19 07:34:12 -0600

I have not actually tested this but you could try the following (at your own risk):

mkdir /etc/dconf/db/local.d
cat > /etc/dconf/db/local.d/00-mysettings <<EOF
[org/gnome/nautilus/preferences]
executable-text-activation=launch
EOF

dconf update

"What to do with executable text files when they are activated (single or double clicked) Possible values are "launch" to launch them as programs, "ask" to ask what to do via a dialog, and "display" to display them as text files."

The default is to display.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-01-19 07:00:22 -0600

Seen: 7,281 times

Last updated: Jun 02 '13