GNOME Bugzilla – Bug 779431
Use g_content_type for reporting type support
Last modified: 2017-03-03 09:57:27 UTC
.
Created attachment 346987 [details] [review] autoar-mime-types: update supported mime types with shared-mime-info We were using a mix of supported mime types, that some weren't super types in shared-mime-info. Use only super types and in an upcoming patch we will use the right function to check whether a mime type is a super type of another.
Created attachment 346988 [details] [review] mime-types: use g_content_type_is_a for mime support We were using a plain text matching, which is less than ideal and prone to error. One clear practical issue is that rar was reported as not supported, since the supertype is vnd.rar, not any alias like x-rar, etc. This patch fix autoar to make sure we check for the supertypes for reporting whether the types are supported or not.
*** Bug 772765 has been marked as a duplicate of this bug. ***
Hey I'm commiting for now since file-roller commited the counterpart. If someone has some objection/review, please feel free to say. Attachment 346987 [details] pushed as 4cda32a - autoar-mime-types: update supported mime types with shared-mime-info Attachment 346988 [details] pushed as d7e45a2 - mime-types: use g_content_type_is_a for mime support