Bug 2001 - txt2tags files misidentified as postscript files
Summary: txt2tags files misidentified as postscript files
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Jonathan Blandford
QA Contact:
URL: http://txt2tags.sf.net
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-02 19:04 UTC by Chris Rebert
Modified: 2006-07-09 03:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Chris Rebert 2004-12-02 19:04:03 UTC
Files of the txt2tags format (see URL for details) (extensions: .t2t .txt) are
being misidentified as postscript files.

To reproduce (in GNOME v2.8.0-r1 w/ shared-mime-info v0.14):
Part 1:
1. Download example txt2tags file #1 w/ .txt extension
2. Notice its icon is that as a plaintext file
3. Double-click said file
Part 2:
5. Download the other example file w/ a .t2t extension (t2t -> txt2tags)
6. The file is immediately given a postscript icon.
7. Double-click said file

Actual results:
Part 1: A dialog box pops up complaining that the file is a postscript file w/
the wrong extension.
Part 2: The GGV postscript viewer is opened and complains that the file is not a
valid postscript file.

Expected results:
Gedit or the default text editor app should be opened.

Referred to freedesktop from GNOME bug #160053
(http://bugzilla.gnome.org/show_bug.cgi?id=160053)
Comment 1 Bastien Nocera 2006-07-09 03:41:55 UTC
2006-07-09  Bastien Nocera  <hadess@hadess.net>

        * freedesktop.org.xml.in: add text/x-txt2tags to the mime-type
        so that we can whitelist it (not a Postscript!) (Closes: #2001),
        lower the priority of the application/mbox magic to avoid false
        positives


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.