Ubuntu – Create a shortcut for URL

shortcutsurl

How can I create a shortcut for URL in my desktop? I want to use them in Firefox or Chrome.

If a copy and paste didn't work.

What script I have to use?

Best Answer

In Ubuntu an URL shortcut is stored in a .desktop file as follow (for example):

[Desktop Entry]
Encoding=UTF-8
Name=Link to Ask Ubuntu
Type=Link
URL=http://www.askubuntu.com/
Icon=text-html

You can drag links from Firefox or Chrome and drop them on the Desktop or any other folder where you have permissions to save files.

Note: Link will appear on your Desktop or your file explorer (i.e. caja) under the name in the line Name=…, not by its actual filename. And without any ….desktop extension.

Related Question