Menu

#76 Inconsistent MIME or media type lists

SVN
closed-fixed
nobody
None
5
2015-03-14
2015-02-17
Ark
No

The files in the mime directory list contradictorily or incompletely what MComix is capable of. For example, mcomix.desktop offers application/x-cb7 while all the other files that list MIME types do not. Furthermore, the icons directory does not contain files like application-x-cb7.png.

Also, things should be made consistent with constants.py. For example, MComix is able to handle application/pdf now (which is not listed anywhere else).

Discussion

  • Ark

    Ark - 2015-02-17

    What to do with file types that are usually handled by different programs, e.g. 7z or PNG? That is, why is it that only cb* types are being listed but "plain" archive types or image types are not?

    Furthermore, Wikipedia suggests application/x-rar-compressed (not listed in constants.py) but also refers to https://tools.ietf.org/html/rfc6648. On the other hand, I don't know how files like *.desktop are specified, that is, which MIME types they accept or do not accept.

     
  • Benoit Pierre

    Benoit Pierre - 2015-03-12

    MuPDF desktop file lists:

    • application/pdf
    • application/x-pdf
    • application/x-cbz
    • application/oxps
    • application/vnd.ms-xpsdocument
    • image/jpeg
    • image/pjpeg
    • image/png
    • image/tiff
    • image/x-tiff

    Evince desktop file lists:

    • application/pdf
    • application/x-bzpdf
    • application/x-gzpdf
    • application/x-xzpdf
    • application/x-ext-pdf
    • application/postscript
    • application/x-bzpostscript
    • application/x-gzpostscript
    • image/x-eps
    • image/x-bzeps
    • image/x-gzeps
    • application/x-ext-ps
    • application/x-ext-eps
    • application/x-dvi
    • application/x-bzdvi
    • application/x-gzdvi
    • application/x-ext-dvi
    • image/vnd.djvu
    • application/x-ext-djv
    • application/x-ext-djvu
    • image/tiff
    • application/x-cbr
    • application/x-cbz
    • application/x-cb7
    • application/x-cbt
    • application/x-ext-cbr
    • application/x-ext-cbz
    • application/x-ext-cb7
    • application/x-ext-cbt
    • application/oxps
    • application/vnd.ms-xpsdocument

    So I think the list used by MComix should be like this:

    • application/x-cb7
    • application/x-ext-cb7
    • application/x-cbr
    • application/x-ext-cbr
    • application/x-cbt
    • application/x-ext-cbt
    • application/x-cbz
    • application/x-ext-cbz
    • application/pdf
    • application/x-pdf
    • application/x-ext-pdf
    • image/bmp
    • image/x-MS-bmp
    • image/x-bmp
    • image/gif
    • image/jpeg
    • image/png
    • image/tiff
    • image/x-portable-bitmap
    • image/x-portable-graymap
    • image/x-portable-pixmap

    Also mime/mcomix.xml is missing application/x-cb7, although I'm not sure there is still a need for this file as probably most distributions include /usr/share/mime/packages/freedesktop.org.xml which already contains those definitions.

    Anyway see here and there for the respective fixes, which I can push to Subversion if you're okay with the changes.

     
  • Ark

    Ark - 2015-03-13

    I'm okay with it (see [#73]). Could you please add the corresponding mime/icons/*x*/application-x-cb7.png files?

     

    Related

    Bugs: #73

  • Benoit Pierre

    Benoit Pierre - 2015-03-13

    Done.

     
  • Ark

    Ark - 2015-03-13

    Thank you.

     
  • Ark

    Ark - 2015-03-14
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB