前天不小心在gconf-editor里面把/apps/nautilus/desktop里面的computer_icon_name值删除了。我以为那个值是整数,就新建了一个还设置成强制的了,重启了下电脑,提示gnome-panel错误。马上想到刚才的问题了,name 应该是字符串 string 而不是整数 。去改 发现因为是强制的不能改 。
试了很多方法也不行 ,那我想就到gconf的文件夹里找文件。进入 /home/username/.gconf,进去发现没有computer_icon_name那一项 。
后来知道gconf-editor 的设置被保存在/home/username/.gconf 内,而自己设置的强制值则被保存在 /etc/gonf/ 内的/etc/gconf/gconf.xml.defaults/ 和 /etc/gconf/gconf.xml.mandatory/。
注意,这是ubuntu内的,不一样的发行版有不一样的储存方法 。
终于在/etc/gconf/ 文件夹中找到他了
打开/etc/gconf/gconf.xml.defaults/%gconf-tree.xml 找到computer_icon_name 段删除
打开/etc/gconf/gconf.xml.mandatory/%gconf-tree.xml 找到computer_icon_name 段删除
重启搞定啦