← Back to team overview

registry team mailing list archive

[Bug 185165] Re: Ubuntu does not open MS Windows internet shortcuts with 'url' extension

 

Launchpad has imported 1 comments from the remote bug at
http://bugs.freedesktop.org/show_bug.cgi?id=21949.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2009-05-26T13:54:06+00:00 7qia0tp02 wrote:

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="application/x-mswinurl">
    <_comment>Internet shortcut</_comment>
    <magic priority="50">
      <match type="string" value="InternetShortcut" offset="1"/>
      <match type="string" value="DEFAULT" offset="1">
        <match type="string" value="BASEURL=" offset="10"/>
      </match>
    </magic>
  </mime-type>

...

  <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?

Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/gnome-mime-
data/+bug/185165

Thanks

Reply at: https://bugs.launchpad.net/gnome-mime-
data/+bug/185165/comments/17


** Changed in: gnome-mime-data
   Importance: Unknown => Medium

-- 
Ubuntu does not open MS Windows internet shortcuts with 'url' extension
https://bugs.launchpad.net/bugs/185165
You received this bug notification because you are a member of Registry
Administrators, which is the registrant for Gnome Mime-Data.