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 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:
There is already a MIME type for these files "Internet shortcut (application/ x-mswinurl) " registered in /usr/share/ mime/applicatio n/x-mswinurl. xml and /usr/share/ packages/ freedesktop. org.xml
The latter contains the magic word search:
<magic priority="50"> InternetShortcu t" type="string" offset="1"/>
<match value="
<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" * text/x- uri:*.url 50:text/ x-uri:* .url freedesktop. org.xml: <glob pattern="*.url"/>
globs:
globs2:
packages/
Not sure about the details of this. Do these definitions need to be cleaned up to be consistent?