简单技巧：从 Ubuntu 桌面上删除主文件夹图标
主文件夹
![](/data/attachment/album/202309/02/153353a01ouhl1a5svhym0.jpg)



> 
> 对于不想在桌面上看到主文件夹图标的 Ubuntu 用户，这里有一个简单技巧。
> 
> 
> 


Ubuntu 使用定制的 GNOME 版本，由于侧边启动器，它的外观与旧的 Unity 桌面有些相似。


普通 GNOME 和 Ubuntu 的 GNOME 之间的另一个区别是桌面上主文件夹和回收站的使用。这些图标就在那里，以便你可以快速访问它们。


![Home folder icon on Ubuntu desktop](/data/attachment/album/202309/02/153854l29bsvobzs3bffjo.png)


如果你觉得不美观，可以从桌面视图中删除主文件夹。


让我分享一下 GUI 和命令行方法。


### 在 Ubuntu 中隐藏桌面上的主文件夹图标


你只需要这样做：


**在 Ubuntu 中按 `Super + D` [键盘快捷键](https://itsfoss.com/ubuntu-shortcuts/)访问桌面**。


现在**右键单击桌面上的空白区域**。


从右键单击上下文菜单中，**选择<ruby> 桌面图标设置 <rt>  Desktop Icons Settings </rt></ruby>**。


![Right click on the desktop and click the Desktop Icons Settings](/data/attachment/album/202309/02/153854yuudfdu7bdygkrum.png)


它将在“<ruby> 设置 <rt>  Settings </rt></ruby>”应用中打开 <ruby> Ubuntu 桌面 <rt>  Ubuntu Desktop </rt></ruby>设置选项。你也可以通过打开“设置”应用并转到侧边栏中的“Ubuntu 桌面”选项来访问它。


在这里，你将看到\*\*<ruby> 显示个人文件夹 <rt>  Show Personal folder </rt></ruby>的切换选项\*\*。将其关闭以禁用桌面上的主文件夹图标。


![Disable the Show Personal folder button](/data/attachment/album/202309/02/153855v10u6l1r618ss0lt.png)



> 
> ? 想要恢复主文件夹图标吗？ 再次切换它。
> 
> 
> 


### 使用命令行禁用主文件夹图标


是的，你可以从命令行完全禁用主文件夹图标。


打开终端并使用以下命令。



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

```

效果将是立竿见影的。


要恢复图标，请使用相同的命令，但使用 `true` 而不是 `false`：



```
gsettings set org.gnome.shell.extensions.ding show-home true

```

看到那有多简单了吗？ 也可以采取类似的步骤来删除回收站图标。



> 
> **[如何在 Ubuntu 中移走桌面的回收站图标](https://itsfoss.com/remove-trash-icon-ubuntu-desktop/)**
> 
> 
> 


*（题图：MJ/84c2e427-a8b3-40b7-a753-22f020800242）*




---


via: <https://itsfoss.com/ubuntu-remove-home-icon/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[校对者ID](https://github.com/%E6%A0%A1%E5%AF%B9%E8%80%85ID)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

Ubuntu uses a customized GNOME version which has a somewhat similar look to the old Unity desktop thanks to the side launcher.

Another difference between the vanilla GNOME and Ubuntu's GNOME is the use of Home folder and tash on the desktop. The icons are there so that you can quickly access them.

![Home folder icon on Ubuntu desktop](https://itsfoss.com/content/images/2023/08/home-folder-icon-on-ubuntu-desktop.png)

If you do not find that aesthetically pleasing, you can remove the home folder from the desktop view.

Let me share both GUI and command line methods for that.

## Hide home folder icon from desktop in Ubuntu

Here's what you have to do.

**Access the desktop** by pressing the Super + D [keyboard shortcut in Ubuntu](https://itsfoss.com/ubuntu-shortcuts/).

Now **right click on an empty space** on the desktop.

From the right-click context menu, **select Desktop Icons Settings**.

![Access Ubuntu desktop icon settings](https://itsfoss.com/content/images/2023/08/access-ubuntu-desktop-icon-settings.png)

It will open the Ubuntu Desktop settings option in the Settings application. You could have accessed it by opening Settings app and going to Ubuntu Desktop option in sidebar as well.

Here, you'll see a **toggle option for Show Personal folder**. Toggle it off to disable the home folder icon from the desktop.

![Disable home icon on the desktop](https://itsfoss.com/content/images/2023/08/disable-home-folder-icon-on-ubuntu-desktop.png)

## Disable the home folder icon using command line

Yes, you can totally disable the home folder icon from the command line.

Open a terminal and use the following command.

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


The effects will be immediate.

To bring the home icon back, use the same command but with `true`

instead of `false`

:

`gsettings set org.gnome.shell.extensions.ding show-home true`


See how simple that was? Similar steps can be taken to remove the trash icon as well.

[How to Remove Trash Icon From Desktop in UbuntuThis simple quick tip shows how to remove trash icon from the desktop in Ubuntu. Both graphical and command line methods have been discussed.](https://itsfoss.com/remove-trash-icon-ubuntu-desktop/)![](https://itsfoss.com/content/images/wordpress/2018/04/remove-trash-icon-from-ubuntu-desktop-featured-1.jpeg)


![](https://itsfoss.com/content/images/wordpress/2018/04/remove-trash-icon-from-ubuntu-desktop-featured-1.jpeg)