How do I remove the "Trash" icon from GNOME 3 desktop? I'm running Ubuntu 17.10 with GNOME shell.
Up to Ubuntu 18.10
You may use (GNOME) Tweaks (aka GNOME Tweak Tool) to do that. First install it (if it is not installed) by running the following command in Terminal
sudo apt install gnome-tweaks
or
sudo apt install gnome-tweak-tool
Launch Tweaks and go to Desktop section. Then toggle off (or uncheck) the Trash (or Rubbish bin or Wastebasket) option under "Icons on Desktop".
Alternatively you may run the following command in Terminal:
gsettings set org.gnome.nautilus.desktop trash-icon-visible false
-
1Just tested it in a VM. Works as advertised. Tested the GUI solution with tweak tools and the command line solution. – Videonauth Oct 17 '17 at 22:20
-
1
-
-
-
1@scott Yes, because the way desktop icons are handled is changed fundamentally (handler changed from Nautilus to a shell extension), and this is the case since Ubuntu 19.04. – pomsky Oct 30 '19 at 13:35
After following Exien's answer on Ubuntu 20.04, the GUI became extremely slow and unresponsive. I had to reinstall Ubuntu even after reverting the value to true which did not fix the problem it generates.
In Ubuntu 20.04
It is actually easy:
-
It's probably just a red herring; your issues may have appeared coincidentally after running the command, but most likely only the command itself is not the cause. Running the command does (under the hood) exactly what toggling off in the Extensions app does. – pomsky Jun 8 '20 at 10:22
Ubuntu 19.04 and later
The following terminal command works:
gsettings set org.gnome.shell.extensions.desktop-icons show-trash false