irrExt | readme-whatIsThis.txt | strange mime type | debian

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

irrExt | readme-whatIsThis.txt | strange mime type | debian

Post by randomMesh »

Hello,

just did a fresh checkout of https://irrext.svn.sourceforge.net/svnroot/irrext

I wanted to open readme-whatIsThis.txt using Nautilus 2.20.0 on Debian Lenny 5.0.3.
An error message popped up, telling me that it can't open that file.

I tried with changes.txt and that worked.

I was very curious what the issue was and checked the file type using the 'file' command.

Code: Select all

readme-whatIsThis.txt: ASCII English text, with CRLF line terminators

Code: Select all

changes.txt: ASCII text, with CRLF line terminators
See the difference?

Let's check what Nautilus thinks:

Code: Select all

readme-whatIsThis.txt: MIME-Type: application/mbox (hu?)

Code: Select all

changes.txt: MIME-Type: text/plain (ok)
Why the difference?
Is this a issue of my Debian installation?

Edit:
Turns out that shared-mime-info has a bug.

So the readme-whatIsThis.txt shouldn't start with the word 'From' if you want that people are able to open it with Nautilus on a Debian Lenny system (which is quite common i think). :roll:

Edit 2:
Changing 'From' to 'from' solved it, if you want to keep that word.
"Whoops..."
Post Reply