当我在Ubuntu 12.04中登录gnome时,我可以在命令行中输入以下命令来打开pdf:
evince mypdf.pdf
但是,下面的操作不起作用。
su
evince mypdf.pdf
这会出现以下错误:
(evince:1368): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
** (evince:1368): WARNING **: The connection is closed
No protocol specified
No protocol specified
Cannot parse arguments: Cannot open display:
我该如何修复它以便在命令行上更改用户不会破坏 GUI 应用程序?