[Bug 35461] nautilus offers wrong open with options for plain text files

Tristan Wibberley tristan at wibberley.org
Sat Mar 18 13:11:42 UTC 2006

Public bug reported:

Affects: nautilus (Ubuntu)
       Severity: Normal
       Priority: (none set)
         Status: Unconfirmed

if a plain text file is named with ".","o","g", and "g" as the last four
characters of its name, and in that order, it recognises that it is
plain text, rightclick->properties correctly says the mime type is
"text/plain" but the open action says its name is wrong. Also the open
with menu has the programs for Ogg streams rather than for plain text

Linux plain text files do not have any valid or invalid filename
sections. It is common to have several files named "format.ogg",
"format.wav", "format.odt" which are each plain text files describing
the file formats named after the dot. That is the conventional use for
the dot eg, foo.c is the c source version of foo.s, which is the
assembler version of foo.o which is the object version of the other two
- the dot is used only as an "alternatives" marker and has no special

As another example, when downloading a file with the same name as one
already downloaded, the file is commonly called filename.1, this is not
a file of type 1, but the first alternative.

As such, when filetype detection succeeds, nautilus should behave as
expected and open it with that file types default program, or at the
very least should offer the correct "open with" option.

More information about the desktop-bugs mailing list