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.

marked as duplicate by terdon, g_p, Florian Diesch, Eric Carvalho, Eliah Kagan Oct 4 '14 at 22:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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

  • 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 5 '14 at 9: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 5 '14 at 9: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 5 '14 at 10:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.