gedit:cannot open display

Posted soul.stone

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了gedit:cannot open display相关的知识,希望对你有一定的参考价值。

[email protected]:/home$ sudo gedit
Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused

(gedit:24385): Gtk-WARNING **: cannot open display: :0


[email protected]:/home$ xhost +
access control disabled, clients can connect from any host


[email protected]:/home$ sudo gedit

 

以上是关于gedit:cannot open display的主要内容,如果未能解决你的问题,请参考以下文章

Git (gnome-ssh-askpass:3871): Gtk-WARNING **: cannot open display:

Java 应用程序抛出`Gtk-WARNING **: cannot open display:` 即使不需要 xserver

Cannot open URL…

delphi cannot open clipboard错误

Cannot Connect to X display真象还原 | 天坑解决

ImportError:cannot import name ‘display‘ File “XX“, line 5, in <module> from IPython import display