我无法在 WSL 下运行 GUI 应用程序。首先,我尝试运行 Synaptic,但它显示了以下消息:
Unable to init server: Could not connect: Connection refused
Failed to initialize GTK.
Probably you're running Synaptic on Wayland with root permission.
Please restart your session without Wayland, or run Synaptic without root permission
然后我尝试运行gedit
并得到了这个:
Unable to init server: Could not connect: Connection refused
(gedit:36): Gtk-WARNING **: 12:46:33.434: cannot open display:
有人建议我可以通过远程桌面连接使用它,但我希望它与系统集成。