I just installed Ubuntu 18.04 and don't like having the trash icon on the desktop rather that in the launcher (Ubuntu dock).
How can I move it back to the launcher? Can other icons be moved from the desktop to the launcher?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Launch Terminal and run
gsettings set org.gnome.nautilus.desktop trash-icon-visible false
You may alternatively use GUI tools like dconf-Editor or (GNOME) Tweaks (see this for reference).
gsettings set org.gnome.shell.extensions.desktop-icons show-trash false
Follow the steps below.
First install the
trash-cli package by running
sudo apt install trash-cli
.desktop file (say
trash-in-dock.desktop) in your
Open the file with a text editor and add the following lines
[Desktop Entry] Comment=Trash icon for Ubuntu dock Terminal=false Name=Trash for Dock Exec=nautilus trash:/// Type=Application Icon=user-trash NoDisplay=false Actions=empty-trash; [Desktop Action empty-trash] Name=Empty Trash Exec=trash-empty
Save the file and re-login if needed.
Click "Activities" or press Super and search for Trash for Dock. It should appear in the results.
Right click the icon and select "Add to Favourites".
What you will get
A Trash icon in your dock, clicking which will open the Trash folder.
What you won't get
The Trash icon in the dock would be like other app icons, it won't be conveniently placed at the bottom like in Unity Launcher.
The Trash icon in the dock would be a 'static' one, i.e. won't show two different icons depending on whether the Trash is empty or not.
Simply run the following command
gsettings set org.gnome.shell.extensions.dash-to-dock show-trash true