问题描述:
重新安装系统过后,使用gedit时显示
sudo gedit ~/.bashrc
No protocol specified
Unable to init server: 无法连接: 拒绝连接
(gedit:3372): Gtk-WARNING **: 12:25:24.256: cannot open display: :0
原因:参考这篇文章
解决方法:
~$ xhost local:gedit
non-network local connections being added to access control list
就可以重新使用gedit了~