我无法在 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
Run Code Online (Sandbox Code Playgroud)
然后我尝试运行gedit并得到了这个:
Unable to init server: Could not connect: Connection refused
(gedit:36): Gtk-WARNING **: 12:46:33.434: cannot open display:
Run Code Online (Sandbox Code Playgroud)
有人建议我可以通过远程桌面连接来使用它,但我希望它与系统集成。