Bug 10072 - Associate more extensions/glob patterns with MIME types
Summary: Associate more extensions/glob patterns with MIME types
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: high normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-23 02:22 UTC by Christian - Manny Calavera - Neumair
Modified: 2008-04-09 08:16 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Christian - Manny Calavera - Neumair 2007-02-23 02:22:11 UTC
As of 2007-02-23, the following MIME types have no associated glob pattern

application/mac-binhex40
application/mbox
application/pgp-signature
application/pkcs7-mime
application/x-sqlite2
application/x-sqlite3
application/x-arc
application/x-awk
application/x-class-file
application/x-dbm
application/x-font-dos
application/x-font-framemaker
application/x-font-libgrx
application/x-font-otf
application/x-font-sunos-news
application/x-font-tex
application/x-font-tex-tfm
application/x-font-vfont
application/x-frame
application/x-gdbm
application/x-gmc-link
application/x-gtktalog
application/x-ipod-firmware
application/x-kspread-crypt
application/x-ksysv-package
application/x-kword-crypt
application/x-macbinary
application/x-mozilla-bookmarks
application/x-mswinurl
application/x-nautilus-link
application/x-netscape-bookmarks
application/x-ole-storage
application/x-pef-executable
application/x-sc
application/x-slp
application/x-stuffit
application/x-toutdoux
application/x-troff-man-compressed
application/x-zerosize
audio/x-adpcm
audio/x-aifc
audio/x-aiffc
audio/x-mp3-playlist
audio/x-mpeg
audio/x-riff
image/g3fax
image/x-dib
image/dpx
image/x-fpx
image/x-niff
image/x-pcx
(X) inode/blockdevice
(X) inode/chardevice
(X) inode/directory
(X) inode/fifo
(X) inode/mount-point
(X) inode/socket
(X) inode/symlink
message/delivery-status
message/disposition-notification
message/external-body
message/news
message/partial
message/rfc822
(X) multipart/alternative
(X) multipart/appledouble
(X) multipart/digest
(X) multipart/encrypted
(X) multipart/mixed
(X) multipart/related
(X) multipart/report
(X) multipart/signed
(X) multipart/x-mixed-replace
text/enriched
text/htmlh
text/rfc822-headers
text/x-ksysv-log
text/x-speech
application/xslt+xml
text/xmcd
video/isivideo
video/wavelet

Those marked with an "(X)" to my knowledge are not supposed to have any glob patterns. This may also be relevant for others - the rest should get at least one glob pattern.

The original bug report is from GNOME and is about image/x-pcx not having a glob pattern:
http://bugzilla.gnome.org/show_bug.cgi?id=329072
Comment 1 Pino Toscano 2007-02-23 07:04:27 UTC
It seems you are generalizing too much.

> application/x-sqlite2
> application/x-sqlite3
I never seen sqlite database with extensions.

> audio/x-mpeg
This is a good candiate to be an alias for audio/mpeg (thus to be killed as lonely mimetype).
Comment 2 David Faure 2007-03-16 01:30:39 UTC
application/x-class-file looks like it should be removed, or made an alias for application/x-java, which has the *.class glob.
Comment 3 Pino Toscano 2007-03-22 16:31:00 UTC
> application/x-ksysv-package

It's bug #10040.
Comment 4 David Faure 2008-03-27 03:43:35 UTC
The fact that *.pcx is missing is probably a bug, yes.
Also, I have seen *.mbox used for application/mbox (e.g. by kmail), please add that pattern.

And maybe *.awk for awk scripts? is that used?

But it's perfectly valid for mimetypes with magic to not have a pattern, for instance application/mac-binhex40 or application/pgp-signature. The mimetype is detected from the contents of the file - no problem.
Comment 5 Bastien Nocera 2008-04-09 08:16:12 UTC
(In reply to comment #4)
> The fact that *.pcx is missing is probably a bug, yes.

* freedesktop.org.xml.in:
* tests/list: Add a pattern for PCX files, fix the test suite
accordingly

> Also, I have seen *.mbox used for application/mbox (e.g. by kmail), please add
> that pattern.

* freedesktop.org.xml.in: Add a pattern for mbox files, as used
by KMail

> And maybe *.awk for awk scripts? is that used?

* freedesktop.org.xml.in: Add a pattern for AWK files

> But it's perfectly valid for mimetypes with magic to not have a pattern, for
> instance application/mac-binhex40 or application/pgp-signature. The mimetype is
> detected from the contents of the file - no problem.
> 

I also did:
* freedesktop.org.xml.in: Remove audio/x-mp3-playlist (no pattern,
no magic) and make it an alias for m3u playlists

I'll close this, and hopefully people will file bugs with specifics :)


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.