Open files besides openoffice with 2 clix in nautilius

Asked by linguistic76

Hello,

I am looking at my file manager and when I double click on a .odt document the file opens up nicely with open office. But when I double click on a .txt. or .html file I get the message

 "Do you want to run '. . .txt', or display its contents?

 . . .txt is an executable file"

Then I have the radio buttons 'Run in Terminal' 'Display' 'Cancel' 'Run' "

 Then another box quickly pops up saying "Opening ' . . .txt' You can stop this operation by clicking cancel"

My goal is to double click a .txt file and for the text editor to open it up. I have the same issue when opening up a .html. Sure I can right click get the menu and open the file.

Insight on this problem is kindly apreciated.

All the best,

Mike

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu nautilus Edit question
Assignee:
No assignee Edit question
Solved by:
Sam_
Solved:
Last query:
Last reply:
Revision history for this message
nhasian (nhasian) said :
#1

thats an easy one. open up nautilus and go to Edit->Preferences then click on the Behavior tab and change the "executable text files" from Ask each time, to Vew executable text files when they are opened.

Revision history for this message
Best Sam_ (and-sam) said :
#2
Revision history for this message
linguistic76 (linguistic76) said :
#3

That was awesome people. Thanks.

Bluefish didn't work at first, but then I found a workaround here on launchpad. Thank you.

All the best,

Mike

Revision history for this message
linguistic76 (linguistic76) said :
#4

Thanks Sam, that solved my question.

Revision history for this message
kanub (gwd0fqy02) said :
#5

i come from a Windows background and most of my .txt files had the executable flag set so Linux thinks the need to be executed. what i did was run the following command.
WARNING: this recursively converts ALL files to non-executable. i didn't have any executables in my home directory right after setting up Ubuntu.

find ~ -type f -exec chmod -x {} \;