5

To reiterate the question: how do I remove the home directory and Trash icons from the desktop in Ubuntu 19.04?

There are several similar questions on Ask Ubuntu, but none provided the answer:

The second, third, and fourth questions are the top three hits in Google for the search terms "Ubuntu remove icons from desktop", but I can't provide the correct answer for Ubuntu 19.04 on any of them because they specifically cite a different Ubuntu version number.

  • @heynnema Sorry, I didn't know that I needed to accept the answer of a question that I self-answered and I'm not willing to accept an answer that requires installing a browser extension or package when simple command-line commands can be used in a default installation of Ubuntu. – Patrick Dark Jul 20 '19 at 00:48
  • If you notice in your terminal commands... org.gnome.shell.extensions.desktop-icons... the extension is probably already there... and the GUI approach is much easier than using the terminal :-) – heynnema Jul 20 '19 at 00:50

3 Answers3

5

The simplest method is to execute these two commands in a terminal:

gsettings set org.gnome.shell.extensions.desktop-icons show-home false
gsettings set org.gnome.shell.extensions.desktop-icons show-trash false

1

enter image description here

heynnema
  • 70,711
0

Remove trash icon:

gsettings set org.gnome.shell.extensions.ding show-trash false

Remove home icon:

gsettings set org.gnome.shell.extensions.ding show-home false

To additionally hide the external drives:

gsettings set org.gnome.shell.extensions.ding show-volumes false