shared-mime-info question

Thomas Leonard tal00r at ecs.soton.ac.uk
Tue May 11 13:24:28 EEST 2004


On Tue, May 11, 2004 at 11:59:48AM +0200, David Faure wrote:
> text/x-makefile has
>     <glob pattern="makefile*"/>
> and text/html obviously has
>     <glob pattern="*.html"/>
> 
> This breaks for files like makefile-distfiles.html if the first one is
> evaluated before the second one.
> 
> Perhaps the pattern matching should match first those that start with *
> and then those that end with *? Or maybe this can be fixed/emulated by
> using different priorities?

ROX-Filer matches "makefile-distfiles.html" as an HTML. Patterns in the
form "*.ext" do indeed override all others (this is so that extensions can
be placed in a hash table for quick lookup in the common case).

After that, it's longest pattern first, so "makefile*.html" would override
"makefile*".


-- 
Thomas Leonard			http://rox.sourceforge.net
tal00r at ecs.soton.ac.uk	tal197 at users.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1




More information about the xdg mailing list