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.

How do I get an URL in Unity Launcher, so when I click the URL the website of that URL opens in my standard webbrowser - i.e. firefox. (I am using Ubuntu 12.10)

share|improve this question

1 Answer 1

You can use xdg-open:

Run gksudo gedit to get a root text editor, and paste:

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=xdg-open [URL HERE]
Name=[NAME HERE]
Comment=[COMMENT/TOOLTIP HERE]
Icon=[ICON HERE]

You can look for icons in /usr/share/pixmaps

Save the file in /usr/share/applications/, and logoff and logon for good measure. Search for the launcher by name withing the Unity dash and drag it to the launcher.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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