输入gedit filename.c时:
Unable to init server: Could not connect: Connection refused
(gedit:76): Gtk-WARNING **: 17:57:16.278: cannot open display:这是错误显示,每次执行时显示的数字都是随机的,
当ls -l ~/.config/gedit
被输入
ls: cannot access '/home/blank/.config/gedit': No such file or directory
显示
怎么解决这个问题?
发布于 2021-01-28 22:12:40
在使用WSL2在Windows上运行Ubuntu时,我也有类似的问题。
我的工作是遵循https://wiki.ubuntu.com/WSL段落中的说明:运行图形应用程序
在我使用Xming之前,gedit或任何图形化的可视化都无法工作。然后我尝试了与VcXsrv和之后,盖迪特工作!
https://askubuntu.com/questions/1121696
复制相似问题