When clicking on a file in my Ubuntu's file explorer Nautilus, for most types it asks me each time whether I want to run or view it. E.g. .csv, .txt, .sh, but not e.g. .xls (which readily opens with LibreOffce calc).
This, depsite my file not having the explicit executable permission x
(and even if I explicitly use chmod -x
before).
Why, and how to avoid it?
Note, this question has been answered for textfiles in MATE, here. I post the general version here to possibly help others who like me struggle to readily find that or any other answer/question.