"Failed to connect to the session manager"解决办法

来源:互联网 发布:php在线文件管理器 编辑:程序博客网 时间:2024/05/16 01:33

1、错误:

root@ubuntu:/media/software/为知笔记Linux# gedit 6.3.txt
(gedit:6048): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported 

2、解决办法:

发现直接su 过后还是debian这个用户的环境。

直接su 是不会改变当前用户环境的。

知道原因后。改成su -

问题一下就解决了。

3、ps:-------------------------------------------------------------

su  后面不加用户是默认切到 root

su  是不改变当前变量

su - 是改变为切换到用户的变量

也就是说su只能获得root的执行权限,不能获得环境变量

su -是切换到root并获得root的环境变量及执行权限


原创粉丝点击