Forgive me if this is the wrong place or the wrong information, but in Ubuntu, files with .URL extension and [InternetShortcut] magic word (used to store Favorites in IE, for instance) are being recognized as "resource location (text/x-uri)", and we're trying to figure out how to get it recognized correctly (application/x-mswinurl) and then associate that type with a launcher script.
The [InternetShortcut] magic word and .url glob are defined in /usr/share/packages/freedesktop.org.xml, so I thought I'd bring it up here.
<mime-type type="text/x-uri">
<_comment>resource location</_comment>
<sub-class-of type="text/plain"/>
<!-- Note: text/uri-list is reserved by the XDND protocol! -->
<glob pattern="*.uri"/>
<glob pattern="*.url"/>
</mime-type>
So it seems the glob definition is overriding the magic word definition? If I change the file extension it is recognized correctly. Does the priority need to be changed, then?
Forgive me if this is the wrong place or the wrong information, but in Ubuntu, files with .URL extension and [InternetShortcut] magic word (used to store Favorites in IE, for instance) are being recognized as "resource location (text/x-uri)", and we're trying to figure out how to get it recognized correctly (application/ x-mswinurl) and then associate that type with a launcher script.
The [InternetShortcut] magic word and .url glob are defined in /usr/share/ packages/ freedesktop. org.xml, so I thought I'd bring it up here.
<mime-type type="applicati on/x-mswinurl" > Internet shortcut</_comment> InternetShortcu t" offset="1"/>
<_comment>
<magic priority="50">
<match type="string" value="
<match type="string" value="DEFAULT" offset="1">
<match type="string" value="BASEURL=" offset="10"/>
</match>
</magic>
</mime-type>
...
<mime-type type="text/x-uri"> resource location</_comment>
<_comment>
<sub-class-of type="text/plain"/>
<!-- Note: text/uri-list is reserved by the XDND protocol! -->
<glob pattern="*.uri"/>
<glob pattern="*.url"/>
</mime-type>
So it seems the glob definition is overriding the magic word definition? If I change the file extension it is recognized correctly. Does the priority need to be changed, then?
Ubuntu bug: https:/ /bugs.launchpad .net/ubuntu/ +source/ gnome-mime- data/+bug/ 185165
Thanks