您的位置:首页 > 大数据 > 人工智能

ubuntu gedit出错:Failed to connect to the session manager

2013-10-29 21:14 274 查看
刚才用su到root后,用命令gedit发现会出错:** (gedit:2976): WARNING **: 连接已关闭(gedit:2976): EggSMClient-WARNING **: Failed to connect to the session manager:None of the authentication protocols specified are supported** (gedit:2976): WAR

刚才用su到root后,用命令gedit发现会出错: ** (gedit:2976): WARNING **: 连接已关闭 (gedit:2976): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported ** (gedit:2976): WARNING **: Could not connect to
session bus

原因是: su 只能切换到管理员用户权限,不使用管理员的登陆脚本和搜索路径

su - 不但能切换到管理员权限而且使用管理员登陆脚本和搜索路径

解决方法:使用sudo gedit 或者su -后再gedit就没错误了!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: