fedora11,Fedora11 gedit 报错"GConf 错误"

症状:
在Fedora11 下切换到root用户后执行 gedit时报错:
$ su
# gedit
GConf 错误:联系配置服务器失败;某些可能原因是需要为 ORBit 启用 TCP/IP 联网,或者由于系统崩溃,您的 NFS 锁定已失效。请访问 http://projects.gnome.org/gconf/ 了解详细信息。(详细信息 - 1: 获取到会话的连接失败:Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)

解决办法:

切换用户时不要使用 su 而要使用 "su -"

附加:
su 和 su- 的区别

转自: http://www.yuanma.org/data/2007/0210/article_2274.htm
su user保留原来exported的环境变量,而su - user就像以用户user登陆进来一样,重新初始化环境变量。
举个例子:
# su mishuang
# cd
# pwd
/export/home/root
# su - mishuang
# cd
# pwd
/export/home/mishuang
Tags: 

延伸阅读

最新评论

发表评论