Comment 0 for bug 307486

Revision history for this message
Endolith (endolith) wrote :

Binary package hint: nautilus

.URL files are used in Windows to launch the browser to go to a URL. Internet Explorer saves Favorites as .url files, for instance, and Firefox creates .URL files when dragging a web page to the Desktop.

Currently, double-clicking a .url file in Nautilus opens it in a text editor. It should launch the user's default browser instead.

The file format is simple, starting with

[InternetShortcut]

and then containing a string like:

URL=http://www.example.com/webpage.html

For launching the URL in a browser, no more functionality is required than identifying the file format (.url glob and magic word as above) and then finding this "URL=" key.

There are other keys that can be included in the file, like an icon with an absolute Windows path. If we wanted to implement advanced things like finding the icon, Bug 136714 is relevant.

http://www.cyanwerks.com/file-format-url.html