如何在Ubuntu 16.04系统设置中添加项目并实现同窗口打开?
嘿,我来帮你搞定在Ubuntu 16.04系统设置里添加Unity Tweak Tool、CCSM这些工具,还能让它们在同一窗口打开的问题!
在Ubuntu 16.04系统设置中添加工具并设置同一窗口打开
第一步:确保目标工具已安装
如果还没装Unity Tweak Tool或CCSM,先打开终端执行以下命令安装:
- 安装Unity Tweak Tool:
sudo apt update && sudo apt install unity-tweak-tool - 安装CompizConfig Settings Manager(CCSM):
sudo apt install compizconfig-settings-manager
第二步:创建系统设置项的.desktop文件
系统设置里的项目都是通过.desktop配置文件识别的,我们需要为每个工具创建对应的配置文件:
为Unity Tweak Tool创建配置文件
- 打开终端,创建并编辑配置文件:
sudo nano /usr/share/applications/unity-tweak-tool-system-settings.desktop - 将以下内容粘贴进去(注意粘贴后检查格式):
[Desktop Entry] Name=Unity Tweak Tool Comment=Configure the Unity desktop environment Exec=unity-tweak-tool Icon=unity-tweak-tool Terminal=false Type=Application Categories=SystemSettings; X-Ubuntu-Settings-Channel=unity X-Ubuntu-SingleWindow=true - 按
Ctrl+O保存,Ctrl+X退出编辑器。
为CCSM创建配置文件
- 同样打开终端创建编辑:
sudo nano /usr/share/applications/compizconfig-settings-manager-system-settings.desktop - 粘贴以下内容:
[Desktop Entry] Name=CompizConfig Settings Manager Comment=Configure Compiz behavior and effects Exec=ccsm Icon=compizconfig-settings-manager Terminal=false Type=Application Categories=SystemSettings; X-Ubuntu-Settings-Channel=compiz X-Ubuntu-SingleWindow=true - 保存并退出。
第三步:刷新系统设置缓存
为了让新添加的项目立即显示,执行以下命令刷新桌面缓存:
sudo update-desktop-database
第四步:验证效果
打开系统设置(点击右上角齿轮图标),你应该能看到Unity Tweak Tool和CCSM已经出现在列表里了。点击它们,会在系统设置的同一窗口中打开,而不是弹出新窗口!
内容的提问来源于stack exchange,提问作者Hemoo
相关产品推荐
相关产品推荐

