Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

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.

1 Answer

up vote 1 down vote accepted

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 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 URL=askubuntu.com Icon=text-html But didn't appear in my Desktop. –  Vitor Mazuco Oct 15 '13 at 18:16
1  
@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
1  
@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
add comment

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