From 762321938dae008235d36e2e3b733f9698faa0ba Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Sat, 19 Jan 2013 11:17:10 -0800 Subject: mime: Add a bunch more types from newer evince --- src/evbp-mime.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/evbp-mime.c b/src/evbp-mime.c index cad4eec..628862e 100644 --- a/src/evbp-mime.c +++ b/src/evbp-mime.c @@ -31,24 +31,36 @@ static const struct { const gchar *exts; } mime_suffix[] = { { "application/postscript", "ps" }, + { "application/x-ext-ps", "ps" }, { "application/x-bzpostscript", "ps.bz2" }, { "application/x-gzpostscript", "ps.gz" }, { "image/x-eps", "eps,epsi,epsf" }, + { "application/x-ext-eps", "eps,epsi,epsf" }, { "image/x-bzeps", "eps.bz2,epsi.bz2,epsf.bz2" }, { "image/x-gzeps", "eps.gz,epsi.gz,epsf.gz" }, { "image/tiff", "tif,tiff" }, { "application/pdf", "pdf" }, + { "application/x-ext-pdf", "pdf" }, { "application/x-bzpdf", "pdf.bz2" }, { "application/x-gzpdf", "pdf.gz" }, - { "application/x-ext-pdf", "pdf" }, + { "application/x-xzpdf", "pdf.xz" }, { "application/x-dvi", "dvi" }, + { "application/x-ext-dvi", "dvi" }, { "application/x-bzdvi", "dvi.bz2" }, { "application/x-gzdvi", "dvi.gz" }, { "application/x-cbr", "cbr" }, + { "application/x-ext-cbr", "cbr" }, { "application/x-cbz", "cbz" }, + { "application/x-ext-cbz", "cbz" }, { "application/x-cb7", "cb7" }, + { "application/x-ext-cb7", "cb7" }, { "application/x-cbt", "cbt" }, + { "application/x-ext-cbt", "cbt" }, { "image/vnd.djvu", "djvu,djv" }, + { "application/x-ext-djv", "djv" }, + { "application/x-ext-djvu", "djvu" }, + { "application/oxps", "xps,oxps" }, + { "application/vnd.ms-xpsdocument", "xps,oxps" }, }; static const int n_mime_suffix = sizeof(mime_suffix) / sizeof(mime_suffix[0]); -- cgit v1.2.3