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:
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!
Best Answer
I found a way to do that:
Open a terminal and install
wmctrl
:Create a shell script named
show-desktop.sh
(I put it in my home folder)place this code in there:
and make it executable:
Create a file
show-desktop.desktop
in~/.local/share/applications/
folder:Add this text and save (don't forget change the value on
<your user>
):Open the dash, search for show desktop and add it to the favorites.