I did some debugging on this. In short, Thunar does not handle multiple MIME types being specified for the same file extension. For a given extension, Thunar seems to use whatever MIME type is listed last in /usr/share/mime/globs. Relevant code is at thunar-vfs-mime-legacy.c:660 (Thunar 1.0.1).
There may be extensions which can legitimately be used for more than one MIME type, I don't know. But in this case, I think the problem is with the MIME database, not Thunar. That is, .ogg should always be audio/ogg, and .doc should always be application/msword. Correct me if I'm wrong. Patches for the relevant packages attached: shared-mime-info: /usr/share/mime/packages/freedesktop.org.xml kdelibs5-data: /usr/share/mime/packages/kde.xml Peace, John Lindgren
--- freedesktop.org.xml.0 2009-11-08 13:43:01.000000000 -0500 +++ freedesktop.org.xml 2009-11-21 19:20:24.000000000 -0500 @@ -9416,7 +9416,6 @@ <match value="\x01vorbis" type="string" offset="28"/> </match> </magic> - <glob pattern="*.ogg"/> </mime-type> <mime-type type="audio/x-flac+ogg"> <comment>Ogg FLAC audio</comment> @@ -9458,7 +9457,6 @@ <match value="\177FLAC" type="string" offset="28"/> </match> </magic> - <glob pattern="*.ogg"/> </mime-type> <mime-type type="audio/x-speex+ogg"> <comment>Ogg Speex audio</comment> @@ -9496,7 +9494,6 @@ <match value="Speex " type="string" offset="28"/> </match> </magic> - <glob pattern="*.ogg"/> </mime-type> <mime-type type="audio/x-speex"> <comment>Speex audio</comment> @@ -9571,7 +9568,6 @@ <match value="\x80theora" type="string" offset="28"/> </match> </magic> - <glob pattern="*.ogg"/> </mime-type> <mime-type type="video/x-ogm+ogg"> <comment>OGM video</comment> @@ -23929,4 +23925,4 @@ </treemagic> </mime-type> -</mime-info> \ No newline at end of file +</mime-info>
--- kde.xml.0 2009-10-02 04:18:06.000000000 -0400 +++ kde.xml 2009-11-21 19:12:12.000000000 -0500 @@ -145,9 +145,6 @@ <glob pattern="*.pnx"/> <glob pattern="*.rdc"/> </mime-type> - <mime-type type="text/plain"> <!-- As discussed on xdg list, *.doc is needed here for disambiguation --> - <glob pattern="*.doc"/> - </mime-type> <mime-type type="text/x-hex"> <sub-class-of type="text/plain"/> <comment>IntelĀ® hexadecimal object file</comment>