jshttp / mime-db

Media Type Database
MIT License
1.12k stars 260 forks source link

Add shared-mime-types as upstream source #312

Open rimmington opened 11 months ago

rimmington commented 11 months ago

Adds Freedesktop.org's shared-mime-info repository as an upstream. shared-mime-info is used by common Linux desktop environments for MIME information, typically to identify which application to use to open a file. I've generally found sensible rationales for inclusion and changes in the commit messages of the repository.

There are quite a lot of x- types in this source, which reflects the upstream need for a file type for each format even if there is no IANA official or consensus type. Given that both Apache and Nginx also have a lot of x- types I think it's sensible to include them all.

jayvdb commented 5 days ago

A bit of a marathon - I've reviewed all the application/ which currently have a source of "iana". Initially I commented on a few to indicate they matched IANA records, but that was too many so I switched to only commenting when there was a discrepancy. I have analysed most of the discrepancies - while a few I feel are adding too many extensions, in most cases these are harmless, as there are no other media/mime types using that extension.

.qs and .lib and .htm and .html seem like the most problematic. Overall I would suggest this PR is a good approach, and any problems can be solved by people working with the upstream project.