file(1) / magic(5) database vs shared-mime-info database

Kip Warner kip at thevertigo.com
Sun Feb 25 22:24:42 UTC 2018


On Sat, 2018-02-24 at 14:17 +0100, Bastien Nocera wrote:
> There's probably others, but that's already a good chunk of the
> problems we'd encounter if we used file's database.

In case it's of interest to anyone, I asked file(1) / magic(5)'s
upstream maintainer about whether his mechanism and shared-mime-info
were redundant with each other or whether they were intended to solve
different problems. This was Christos Zoulas's (cc'd) response in
respect of shared-mime-info:

    I have not looked at the code but for the most part getting the
    majority of the file formats that need mime handing does not require
    the complexity that file requires to parse all the weird and
    recursive cases... Also they don't have any performance constraints
    (they don't need to be able to process thousands of files per
    second).  So for them, it is perhaps simpler to parse and maintain a
    separate database.

-- 
Kip Warner | Senior Software Engineer
OpenPGP signed/encrypted mail preferred
https://www.cartesiantheatre.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/xdg/attachments/20180225/6a07e1a6/attachment.sig>


More information about the xdg mailing list