Bug 12721

Summary: Add NFO document mimetype
Product: shared-mime-info Reporter: Osmo Salomaa <otsaloma>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Proposed patch

Description Osmo Salomaa 2007-10-06 17:52:30 UTC
Currently *.nfo is a glob pattern for text/x-readme. Please consider splitting that to a mimetype of its own. NFO files usually include a lot ascii art drawn with box- and line characters in the cp437 codepage. This usually means that viewing or editing NFO files correctly requires special font and encoding settings specific to this type of files.

See especially the "Compatibility problems" section
http://en.wikipedia.org/wiki/.nfo
Comment 1 Osmo Salomaa 2007-10-06 17:53:34 UTC
Created attachment 11922 [details] [review]
Proposed patch
Comment 2 Bastien Nocera 2008-02-21 07:17:38 UTC
That patch means that applications that can handle text/x-readme (or even text/plain) will be able to open the file. Is there an existing application that can open NFO files on Unix systems and display them as anything better than normal text files?
Comment 3 Osmo Salomaa 2008-02-21 09:51:52 UTC
(In reply to comment #2)
> That patch means that applications that can handle text/x-readme (or even
> text/plain) will be able to open the file.

That is intended. One can read the informative text part of NFO files fine with any text editor, just the surrounding artwork done with CP437 drawing characters needs special settings to display right.

> Is there an existing application
> that can open NFO files on Unix systems and display them as anything better
> than normal text files?

I am aware of NFO Viewer [1], which I wrote myself and KNfoViewer [2]. Because such a viewer is fairly trivial to write there are other less polished viewers out there as well.

[1] http://home.gna.org/nfoview/
[2] http://www.kde-apps.org/content/show.php/KNfoViewer?content=71309
Comment 4 Bastien Nocera 2008-04-09 08:00:44 UTC
* freedesktop.org.xml.in: Add a mime-type for NFO files, patch by
Osmo Salomaa <otsaloma@cc.hut.fi> (Closes: #12721)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.