summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2010-03-19 12:09:43 +0100
committerVincent Untz <vuntz@gnome.org>2010-03-19 12:09:43 +0100
commit35cfa21227e77a80d8ccf1759ce23565fac3960e (patch)
treed1864d749eee5b1a736155cea06b1644d3319351
parent47c06813dcf46f6dad4ba06d9e435ae6f1a649bf (diff)
downloaddesktop-file-utils-35cfa21227e77a80d8ccf1759ce23565fac3960e.tar.gz
Accept chemical/* mime types as valid types
While those mime types are not strictly valid since they were never accepted by the IANA, they are used by real applications. It's also well-defined (http://www.ch.ic.ac.uk/chemime/), and used by real-world applications. Thanks to Pascal Terjan <pterjan@mandriva.com> for noticing this. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420795
-rw-r--r--src/mimeutils.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mimeutils.c b/src/mimeutils.c
index ba157c6..3110429 100644
--- a/src/mimeutils.c
+++ b/src/mimeutils.c
@@ -40,7 +40,12 @@
/* Not registered with IANA, but used on a free desktop */
static const char *known_fdo_media_types[] = {
- "inode", "x-content"
+ "inode", "x-content",
+ /* The chemical media type was never really proposed to IANA, but is
+ * well-known and in use by various applications out there. There are
+ * also some guidelines to not abuse it.
+ * http://www.ch.ic.ac.uk/chemime/ */
+ "chemical"
};
static const char *known_old_fdo_media_types[] = {