如果你一直在试验你的ubuntu系统,你可能最终以unity和compiz的一片混乱收场。在此贴士中,我们将看看怎样来重置ubuntu 14.04中的unity和compiz。事实上,全部要做的事,仅仅是运行几个命令而已。

<a target="_blank"></a>
打开终端(ctrl+alt+t),并使用以下命令来重置compiz:
dconf reset -f /org/compiz/
重置compiz后,重启unity:
setsid unity
此外,如果你想将unity图标也进行重置,试试以下的命令吧:
unity --reset-icons
如果你在重置compiz时遇到如下错误:
error: gdbus.error:org.gtk.gdbus.unmappedgerror.quark._g_2dfile2_derror_2dquark.code17: cannot open dconf database: invalid gvdb header
可能的原因是用户文件被搞乱了。备份dconf配置,并移除配置文件:
mv ~/.config/dconf/ ~/.config/dconf.bak
希望本贴士对你重置ubuntu 14.04中unity和compiz有所帮助,欢迎您随时提出问题和建议。
原文发布时间:2014-10-12
本文来自云栖合作伙伴“linux中国”