隐藏您的Ubuntu桌面中的可移动驱动器图标

I prefer a clean desktop with no icons cluttering it up, but by default Ubuntu adds icons to the desktop for every single removable drive that you attach to your system.

我更喜欢没有图标的干净桌面,但是默认情况下,Ubuntu会为您连接到系统的每个可移动驱动器向桌面添加图标。

隐藏您的Ubuntu桌面中的可移动驱动器图标

Having recently transitioned to using Ubuntu full-time at home (instead of just part-time), this was one of the first things I wanted to disable. Sadly there’s no option in the default configuration screens, so we’ll have to use the “registry editor” for Ubuntu, called gconf-editor.

最近过渡到在家全职使用Ubuntu(而不是兼职),这是我想禁用的第一件事。 遗憾的是,默认配置屏幕中没有任何选项,因此我们必须使用Ubuntu的“注册表编辑器”,称为gconf-editor。

Just type in gconf-editor into the Alt+F2 run dialog to open the app. 

只需在Alt + F2运行对话框中输入gconf-editor即可打开应用程序。

隐藏您的Ubuntu桌面中的可移动驱动器图标

Now browse down to the following key:

现在浏览至以下键:

apps \ nautilus \ desktop

应用\鹦鹉螺\桌面

隐藏您的Ubuntu桌面中的可移动驱动器图标

You should see a key in the right-hand pane called volumes_visible. Remove the checkbox from it, and the icons will instantly disappear from the desktop. Remember that you can always access the drives from the “Computer” icon, or easily in the file browser.

您应该在右侧窗格中看到一个名为volumes_visible的键 。 删除该复选框,图标将立即从桌面上消失。 请记住,您始终可以通过“计算机”图标或在文件浏览器中轻松访问驱动器。

I’m much happier now with my beautiful desktop.

现在,我对美丽的台式机更加满意。

翻译自: https://www.howtogeek.com/howto/ubuntu/hide-removable-drive-icons-from-your-ubuntu-desktop/