Index: src/xdgmimemagic.c =================================================================== RCS file: /cvs/mime/xdgmime/src/xdgmimemagic.c,v retrieving revision 1.21 diff -u -r1.21 xdgmimemagic.c --- src/xdgmimemagic.c 13 Jul 2006 18:46:32 -0000 1.21 +++ src/xdgmimemagic.c 4 Dec 2006 17:28:09 -0000 @@ -678,7 +678,7 @@ mime_type = match->mime_type; priority = match->priority; } - else if (had_match && match->priority == priority) + else if (had_match && match->priority == priority && !xdg_mime_mime_type_subclass(mime_type,match->mime_type)) /* multiple unrelated patterns with the same priority matched, * so we can't tell what type this is. */ mime_type = NULL;