Bug 854

Summary: Magic for Glade files
Product: shared-mime-info Reporter: Yann Bloch <yann.bloch>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED NOTOURBUG QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Yann Bloch 2004-07-11 04:50:11 UTC
Hello

Glade files have no magic yet. This causes Nautilus to complain about the
reported file type (text/xml) being different from the guess at the file's
extension (.glade -> application/x-glade). Whether this is the right thing to do
for nautilus is questionnable, but anyway it can't be wrong to add some magic.
Here a proposal that works for me (don't know if this is the best way to do it...):

    <magic priority="50">
      <match offset="0:256" type="string" value="&lt;!DOCTYPE glade-interface" />
    </magic>

Regards,
Yann.
Comment 1 Christophe Fergeau 2004-08-16 07:22:17 UTC
This is up to glade to register its mime types with the shared mime system, you
should file a bug against glade on bugzilla.gnome.org

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.