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.

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
1  
For UI element terminology help, see What's the right terminology for Unity's UI elements? –  belacq Mar 12 '11 at 4:41

1 Answer 1

I only know a dirty way:

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

    [Desktop Entry]
    Name=MyFile
    Exec=gedit /path/to/a/text/file
    Icon=text
    Terminal=false
    Type=Application
    StartupNotify=true
    
  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
1  
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

 
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.