合 WSL2不能显示图形界面
Tags: 故障处理OSWindows 11WSL2图形界面
现象
1、Unable to init server: Could not connect: Connection refused
(gedit:8890): Gtk-WARNING **: 15:50:26.812: cannot open display:
2、Error: Can't open display: :0
3、Running Firefox as root in a regular user's session is not supported. ($XDG_RUNTIME_DIR is /run/user/0/ which is owned by lhr.)