Comment 7 for bug 185165

Revision history for this message
Endolith (endolith) wrote :

There is already a MIME type for these files "Internet shortcut (application/x-mswinurl)" registered in /usr/share/mime/application/x-mswinurl.xml and /usr/share/packages/freedesktop.org.xml

The latter contains the magic word search:

    <magic priority="50">
      <match value="InternetShortcut" type="string" offset="1"/>
      <match value="DEFAULT" type="string" offset="1">
        <match value="BASEURL=" type="string" offset="10"/>
      </match>
    </magic>

The files are actually recognized as "resource location (text/x-uri)" when I view the Properties in Nautilus, though. This seems to be based on the .url glob:

    /u/s/mime> grep -ir "\.url" *
    globs:text/x-uri:*.url
    globs2:50:text/x-uri:*.url
    packages/freedesktop.org.xml: <glob pattern="*.url"/>

Not sure about the details of this. Do these definitions need to be cleaned up to be consistent?