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 0: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 0:50

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
    This worked like charm. Thank you. – Promise Preston Oct 4 '20 at 14:11
  • This did exactly what I wanted. Thanks a ton. +1 – Austin Dean Jan 9 at 5:21

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.