0

I want to run a shell script. Its a .sh-file. If i make double click, it opens the file in gedit. I know how to execute it in the terminal, but thats a huge way to get every time in the right directory and find the right path. If i make the check in the properties of the file "Run executable files when they are opened." it changes nothing. It opens still in gedit and i dont know how to change it. I tried it with the ubuntu tweak tool, but i cant delete the default opener of this filetype. Its not especially one file, its the whole filetype.

Keilbritschn
  • 1
  • 1
  • 2

1 Answers1

0

You want to run script from a folder, right? In that case you need to open file manager, go to Edit drop-down menu -> properties -> behavior, and check "Run executable files when they are opened." But pay attention, if a script doesn't call for an xterm or anything like that to open, you won't see the script running step by step

Sergiy Kolodyazhnyy
  • 105,154
  • 20
  • 279
  • 497
  • I made there already a check. If i start it over the terminal, it works. But if i make double click it opens everytime in gedit, with and without check in "Run executable files when they are opened." – Keilbritschn Oct 05 '14 at 09:40
  • maybe try changing default application for this file in properties? At least on my machine, the default is set to GNU Emacs, and yet i still can run scripts from a folder – Sergiy Kolodyazhnyy Oct 05 '14 at 09:46
  • Ive installed the GNU Emacs but if i start it, it opens the codeeditor of GNU Emacs. Isnt there a faster way? – Keilbritschn Oct 05 '14 at 10:58