Comment 9 for bug 91488

Revision history for this message
In , Stanislav Brabec (sbrabec-suse) wrote :

There is no easy solution. If the subclassing will not be here, Nautilus will reject to open KDC files and report MIME type conflict. If it is there, Nautilus offers image viewers in the second order in the menu.

The main problem is the fact, that TIFF is not image format, but a generic envelope format. It may contain image or anything else.

I see two possible solutions:

- Create new MIME type application/x-tiff for TIFF container. It will contain TIFF envelope magic and it can be a subclass of both image/tiff and image/x-kodak-kdc. Only the latter two MIME types will be used as application MIME types.

- Write advanced magic, which can recognize TIFF container with image/tiff and not recognize TIFF container with other data. I am not sure whether it is possible.