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.

In question How to add my favorite places as a quicklist in my home's icon in Unity? there is an explanation of how to add my favourite places as a quicklist in the home icon in Unity (i.e. Videos, Documents, Music etc). This is useful but is there a way of adding a Nautilus bookmark that I have created to this list. I tried simply replicating the text for one of the groups by editing (gksudo gedit /usr/share/applications/nautilus-home.desktop), i.e.

[Downloads Shortcut Group]  
Name=MyBookmark  
Exec=nautilus MyBookmark  
OnlyShowIn=Unity

but this had no effect.

With thanks.

share|improve this question

1 Answer 1

There are two parts you need to do with the .desktop file:

  1. Add the shortcut name to the X-Ayatana-Desktop-Shortcuts key, e.g.:

    X-Ayatana-Desktop-Shortcuts=Videos;Documents;...;MyBookmark
    
  2. Add the piece you already posted, just make sure that the section title is of the form [<Shortcut Name> Shortcut Group]:

    [MyBookmark Shortcut Group]
    Name=MyBookmark
    Exec=nautilus MyBookmark
    TargetEnvironment=Unity
    

Also, it's TargetEnvironment instead of OnlyShowIn.

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.