Bug 24669

Summary: Mime type for /usr/share/mime/packages/* files
Product: shared-mime-info Reporter: Matt McCutchen <matt>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Draft MIME info for shared-mime-info files
MIME info v2: add lower glob weight and comments

Description Matt McCutchen 2009-10-21 18:42:13 UTC
Created attachment 30608 [details]
Draft MIME info for shared-mime-info files

It might be nice to define a MIME type to describe shared-mime-info files themselves (i.e., /usr/share/mime/packages* ).  It's not important, but I drafted some MIME info for my own use and thought I would share it.
Comment 1 Matt McCutchen 2009-10-30 21:17:32 UTC
Created attachment 30861 [details]
MIME info v2: add lower glob weight and comments

I realized that the *.xml glob for application/x-shared-mime-info needs to have lower weight than the one for application/xml to make sure that application/xml is reliably favored unless the application/x-shared-mime-info magic matches.  Glib had some trouble with this setup.  The attachment adds the lower weight, a comments about glib, and a comment about the failure to match freedesktop.org.xml itself due to the long DTD.
Comment 2 Bastien Nocera 2010-01-28 09:18:23 UTC
I don't think this is interesting as a feature. Those files are simple XML files, with no interest whatsoever to any application in their raw forms.

If we had an editor to create those, I might change my mind...

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.