隐藏您的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会为您连接到系统的每个可移动驱动器向桌面添加图标。

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即可打开应用程序。

Now browse down to the following key:

现在浏览至以下键:

apps \ nautilus \ desktop

应用\鹦鹉螺\桌面

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/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Ubuntu使用Qt创建桌面图标非常方便。Qt是一个跨平台的开发框架,可以用于创建各种类型的图形界面应用程序,包括桌面图标。 要在Ubuntu创建Qt桌面图标,首先需要安装Qt开发工具包。可以通过终端执行以下命令来安装Qt Creator: sudo apt-get install qtcreator 安装完成后,打开Qt Creator并创建一个新项目。选择“应用程序”模板,并设置相应的项目名称和位置。 进入项目设置,选择“编译与运行”,确保选择了Ubuntu作为目标平台。选择“构建套件”时,可以选择所需的Ubuntu版本。 接下来,在项目菜单选择“添加新文件或目录”并创建一个新的Qt窗口应用程序。在窗口应用程序可以添加所需的操作和界面元素。 完成图标设计后,需要将图标文件添加到Qt项目。在Qt Creator,可以右键单击项目文件夹并选择“添加已存在的文件”。选择图标文件并将其添加到项目。 然后,在Qt Creator运行并测试应用程序,确保图标显示正常。如果一切顺利,可以发布应用程序并将其添加到桌面。 要在桌面上创建图标,可以创建一个.desktop文件,并将其放置在~/.local/share/applications/目录。在.desktop文件,可以指定图标的名称、执行命令以及其他相关设置。 保存并关闭文件后,可以在Ubuntu的启动器或应用程序菜单找到这个图标。单击图标即可运行Qt应用程序,享受桌面开发的乐趣。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值