Comment 2 for bug 601501

I believe you are wrong. /etc/mime.types is not the shared-mime-info database I am talking about. I am aware that Apache uses /etc/mime.types, which only has extension globbing, but no magic or namespace detection. The shared-mime-info database is cascaded in the following three directories (only the first two are necessary for Apache):

/usr/share/mime
/usr/local/share/mime
/home/*/.local/share/mime