您的位置:首页 > 其它

在su用户模式下使用nautilus打开当前文件夹失败

2013-05-31 00:42 246 查看
参考:http://blog.163.com/seven_7_one/blog/static/162606412201092204444260/

在su用户模式下使用nautilus打开当前文件夹失败

[root@localhost hello]# nautilus ./

(nautilus:4038): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported

(nautilus:4038): Eel-WARNING **: GConf error:

Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection
to session: 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.)

解决方法:

就是在管理员用户的 .bashrc 文件尾部添加:

export DBUS_SESSION_BUS_ADDRESS=""

例如,编辑 /root/.bashrc 文件,添加一行 export DBUS_SESSION_BUS_ADDRESS=“”

另外就是使用 su - root 代替su,sudo

其区别是su sudo 使用当前用户的环境变量,su - root会使用root用户的环境变量。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐