Bug 9472 - image/vnd.dxf should be a sub-class of text/plain?
Summary: image/vnd.dxf should be a sub-class of text/plain?
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: high trivial
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-29 00:28 UTC by riku
Modified: 2007-02-05 06:36 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description riku 2006-12-29 00:28:30 UTC
dxf images are detected by nautilus as text/plain, unless I change it a
sub-class of text/plain in /usr/share/mime/packages/freedesktop.org.xml.

Tested with shared-mime-info-0.19.

There are both binary and ascii versions of dxf-files, but I don't have any
binary files to test with. Maybe two mime types are needed, one for acsii and
one for binary Drawing Interchange File?

See http://en.wikipedia.org/wiki/AutoCAD_DXF
Comment 1 Bastien Nocera 2007-02-05 06:36:34 UTC
I've added mime-magic to detect ASCII and binary versions of the files (the only difference between the 2 formats are that some sections might contain binary data for preview).

2007-02-05  Bastien Nocera  <hadess@hadess.net>

        * freedesktop.org.xml.in: Add magic to detect AutoCAD DXF files
        (Closes: #9472)


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.