Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On Ubuntu 10.10, which XML file under the directory /usr/share/mime/applications is for MIME type text/html?

I checked xml.xml and xhtml+xml.xml, but neither has a glob pattern of *.html. So where is this file format entry?

share|improve this question

This should help. This search was done on Debian 6, but should be the same on Ubuntu.

#$find /usr/share/mime/ -print0 | xargs -0 grep [.]html 
/usr/share/mime/packages/freedesktop.org.xml:    <glob pattern="*.html"/>
/usr/share/mime/text/html.xml:  <glob pattern="*.html"/>

From this you can see the information is in /usr/share/mime/globs, /usr/share/mime/globs2, /usr/share/mime/text/html.xml and /usr/share/mime/packages/freedesktop.org.xml

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.