“ 在fedora10下,运行gedit,普通用户下不会出错,但在su到root下会出现如下错误,
(gedit:12541): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supportedok.出错信息不再出现!”
我在ubuntu 11.04 (中文)下,root用户下执行 gedit .bashrc时也碰到来相同的问题:
root@kthm02:~# gedit .bashrc
(process:17052): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
(gedit:17052): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
**
GLib-GIO:ERROR:/build/buildd/glib2.0-2.28.6/./gio/gdbusconnection.c:2279:initable_init: assertion failed: (connection->initialization_error == NULL)
我试了一下root@kthm02:~# sudo gedit .bashrc 就没问题。。