代码: 全选
/usr/lib/python3/dist-packages/UnityTweakTool/__init__.py:40: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
只有启动时在终端输出了这些信息,在我进行配置的时候没有报错,更改配置后虽然实际上没有生效,但是unity-tweak-tool上的配置项在下次启动时,显示的状态是已经修改过的,例如:
在unity-tweak-tool中设置为dash自动隐藏,实际上左侧的面板并未自动隐藏,关闭再次启动unity-tweak-tool之后,该配置项显示的是自动隐藏已打开,而在系统设置的外观->行为中自动隐藏是关闭的。
因此我推断:
是否在新版的ubuntu和unity中,配置项进行了调整,而unity-tweak-tool使用的还是旧的配置项,如unity实际使用的配置是key1,而unity-tweak-tool修改的是旧版的key2。
经使用dconf-editor对比发现,在外观->行为中更改且生效的“自动隐藏”的实际配置项为:
代码: 全选
/org/compiz/profiles/unity-lowgfx/plugins/unityshell/launcher-hide-mode
0 显示 默认值
1 隐藏
而使用unity-tweak-tool修改的实际配置项为:
代码: 全选
/org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode
0 显示 默认值
1 隐藏
查了一圈,应该是unity-tweak-tool对这个LowGFXMode
http://www.tuicool.com/articles/EvUjuqE适配的问题,或者没有正确的识别当前是lowgfx模式导致的,顺便说下我是在hyper-v虚拟中运行的。
解决方案:
代码: 全选
安装compiz配置工具;
sudo apt install compizconfig-settings-manager
打开CompizConfig Settings Manager(命令行下执行 ccsm)
首选项->存档 在这里切换为unity就可以让unity-tweak-tool的配置生效了。
顺便说下,在ccsm里面也可以对unity的行为进行配置,桌面->Ubuntu Unity Plugin 就是了,但是这个界面的易用性和unity-tweak-tool是没办法比的,ccsm的界面就好象你用visual studo拖出来的第一个gui程序。
另外,切换配置方案之后对性能的影响未测试!