From d81046013e1c59c33cc18fe293e5cf55606a6ef6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 20 Feb 2015 11:57:47 +0530 Subject: [PATCH] Linux installer: Do not register application/octet-stream as one of the mimetypes calibre can handle --- src/calibre/linux.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/linux.py b/src/calibre/linux.py index cfb967b354..a66e7af437 100644 --- a/src/calibre/linux.py +++ b/src/calibre/linux.py @@ -804,11 +804,12 @@ class PostInstall: cc('xdg-icon-resource install --size 256 calibre-ebook-edit.png calibre-ebook-edit', shell=True) self.icon_resources.append(('apps', 'calibre-ebook-edit', '256')) - mimetypes = set([]) + mimetypes = set() for x in all_input_formats(): mt = guess_type('dummy.'+x)[0] if mt and 'chemical' not in mt and 'ctc-posml' not in mt: mimetypes.add(mt) + mimetypes.discard('application/octet-stream') def write_mimetypes(f): f.write('MimeType=%s;\n'%';'.join(mimetypes))