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.

i'm using gnome-shell 3.0.0.1, is there a way i can add a folder shortcut or custom launcher (the same way in regular gnome panels) to the gnome-shell favorites dock bar?

Gnome-shell favorites dock bar

share|improve this question
add comment

1 Answer 1

up vote 7 down vote accepted
+50

To add a Downloads folder to the favorites bar in Gnome Shell:

cp /usr/share/applications/nautilus.desktop ~/.local/share/applications/downloads.desktop
nano downloads.desktop

I set the first 4 lines to:

Name=Downloads
Comment=Access and organize your downloads
Exec=nautilus Downloads
Icon=folder-download

Now do one of the following:

  • Log out and back in. Or,

  • Run this in a Terminal window:

    nautilus -q
    

    Then open the Application Launcher with Alt+F2 and run:

    nautilus
    

Search for Downloads in the Dash and then drag the Applications shortcut (as you saw, the Places shortcut won't work) to the favourites bar.

You can browse for other icon names by looking in /usr/share/icons/Humanity/places/24/ for instance.

By default, Nautilus will attempt to open pathnames in your home directory. If you want to access a folder not in your home directory, just put the full path (like /etc/apt )

By the way, the favorites are stored in org.gnome.shell favorite-apps. I prefer to use dconf-editor to browse around and tweak stuff, but you can also use gsettings directly from the command line.

Thanks @fossfreedom for the assist!

share|improve this answer
2  
Jeremy - if you copy from /usr/share/applications/ to ~/.local/share/applications and rename the file, you can add the new desktop shortcut to dconf-editor favourite-apps string. Thus you dont need an admin account. –  fossfreedom May 19 '11 at 21:58
    
Thank you, I'll update my answer! –  Jeremy Bicha May 20 '11 at 15:48
add comment

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.