Topic: Linux users - Can't open rhtml file with double-click in Nautilus??

I have been faced with a Linux annoyance of late, regarding trying to open files via Nautilus. Certain text only files I wish to double-click and have them automatically open in GEdit. Instead, I get an annoying dialog that says:

***
    The filename "my file.rhtml" indicates that this file is of type "rhtml document". The contents of the file indicate that the file is of type "plain text document". If you open this file, the file might present a security risk to your system.

    Do not open the file unless you created the file yourself, or received the file from a trusted source. To open the file, rename the file to the correct extension for "plain text document", then open the file normally. Alternatively, use the Open With menu to choose a specific application for the file.
***

The file was created by me and poses no security risk. This happens with various file types. It is completely annoying and brings to mind the recent Mac commercial where they poke fun at Vista's advanced security features.

How can I turn this warning off and simply launch the file with a double-click? Right now, I have to right click and use a context menu to open files. For code development, this is annoying.


By the way, in case you're wondering I did set the 'opens with' property to "Text Editor". I also tried setting the File Associations.

I'd appreciate any advice. Thanks.

Original post:
http://ubuntuforums.org/showthread.php?t=686010