Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

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?

share|improve this question

marked as duplicate by dobey, Braiam, Eric Carvalho, Seth, psusi Oct 16 '13 at 4:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 13 down vote accepted

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

[Desktop Entry]
Name=Link to Ask Ubuntu

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

share|improve this answer
Ok, I did this vitor@vitor-HP:~$ vim atalho [Desktop Entry] Encoding=UTF-8 Name=Link to Ask Ubuntu Type=Link Icon=text-html But didn't appear in my Desktop. – Vitor Mazuco Oct 15 '13 at 18:16
@VitorMazuco You should save that file on your desktop. The file must to have the extension .desktop. See UnityLaunchersAndDesktopFiles. – Radu Rădeanu Oct 15 '13 at 18:42
I create vim atalho.desktop but nothing appear in my desktop. – Vitor Mazuco Oct 15 '13 at 19:01
@VitorMazuco How to appear on your desktop if you didn't saved there. You must to save it in your ~/Desktop directory. – Radu Rădeanu Oct 15 '13 at 19:15
Ok, thank you so much!!! – Vitor Mazuco Oct 16 '13 at 15:02

Not the answer you're looking for? Browse other questions tagged or ask your own question.