Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

Is it possible to put a shortcut to a file (like a application launcher but opens a file instead of launching a program) in the Unity launcher, and if so, how?

share|improve this question
Do you mean the launcher on the left, or the top panel? Also, which version of Ubuntu are you using? – htorque Mar 11 '11 at 20:46
the launcher on the left. i use ubuntu 11.04. – melodram Mar 11 '11 at 20:48
For UI element terminology help, see What's the right terminology for Unity's UI elements? – belacqua Mar 12 '11 at 4:41

I only know a dirty way:

  1. Create a file ~/.local/share/applications/myfile.desktop
  2. Add the following to that file:

    [Desktop Entry]
    Exec=gedit /path/to/a/text/file
  3. Save it and make that file executable:

    chmod +x ~/.local/share/applications/myfile.desktop
  4. Now browse to that file in Nautilus and drag it to the launcher.

This will add a launcher with a text icon, that opens /path/to/a/text/file with gedit:

enter image description here

Of course you need to change application/file/icon to whatever you want.

share|improve this answer
why didn't they make it easer to create links to files? in gnome-panel, every user was able to add, remove, edit things easily and according to his/her wishes. unity looks great, but i miss the individuality, the possibility to personalize, change. – melodram Mar 11 '11 at 22:08

Your Answer


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.