1. The Extensions Prefs App
The latest versions of Ubuntu include, by default, an “Extensions” app, allowing you to modify and expand how your desktop works. You can find it among your existing apps. If it is not installed for some reason, open the terminal and type: Run the app after it’s installed. Support for hiding all desktop icons is already built in to the Extensions app, so you only have to click on the “Desktop Icons” switch to toggle their displays on or off. In most cases, though, you also need a second click – the Extensions’ effects won’t be applied on your desktop if you don’t enable the Extensions themselves. You can do this with the toggle switch at the top of the window next to the “Extensions” title. If you don’t want to hide all icons on your desktop, just the Home folder and Trash icon, leave the support for icons enabled, then click on the cog button next to the toggle switch, which leads to a new window with some extra options. From this window, you can use the pull-down menu on the top to define the size of your desktop icons and enable or disable the display of the Home folder and Trash icon through two respective switches.
2. Via the Terminal
If you’d rather not use the GUI, it’s easy enough to hide your desktop icons using the terminal. You can hide just the Home and/or Trash icons or hide all desktop icons. Tip: if you’re having any trouble opening the terminal in Ubuntu, try these troubleshooting steps. Open a terminal instance and enter the following commands one at a time to hide Trash or Home:
3. Using Extensions
A similar method to the Extensions Prefs app is Extensions. While both lead to the Extensions UI, this method uses the Dconf Editor, which is a more advanced system editing tool that goes beyond just editing desktop icons. Dconf Editor also uses Desktop Icons NG (DING) versus just the Desktop Icons (in the Extensions Pref) app. Either method works equally well, but if you have any problems hiding desktop icons with the Extensions Pref method, use this method instead. Open Terminal and run: You may need to enter your password to continue. Once installed, open Extensions and turn off “Desktop Icons NG.” You can also open Terminal and enter: Another option is to keep Desktop Icons NG (DING) enabled, then right-click the desktop and choose “Desktop Settings.” Remove whichever icons you would like.
4. Using Gnome Tweak Tool
This is an incredibly helpful tool for tweaking Ubuntu, so it’s worth installing even if you don’t care about the desktop icons. You can install Gnome Tweak Tool by entering the following in Terminal: You may also be able to find it in the Software Center by searching for “tweaks.” Tip: Here’s how to fix your Ubuntu Software Center in case it’s not working. Once opened, go to the Desktop section and change the settings as desired.
5. Disable Display of Personal Folder
If you have Ubuntu 22.04, you can use Settings to toggle the Personal (or Home) folder to “off.” This won’t hide any other desktop icons, but if that’s all you want to hide, this works well. All screenshots by Crystal Crowder sudo add-apt-repository universe sudo add-apt-repository multiverse sudo apt update This gives Ubuntu access to more repositories so that it can install more software packages. gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts false ls ~/Desktop > ~/Desktop/.hidden If you’re not sure how to use scripts and bash commands in Linux, check out our previous tutorial which walks you through the most important commands you need to know.