Unable to init server: Broadway display type not supported: localhost:0
Error: cannot open display: localhost:0
主要问题是WSL2使用的是VM模式,选上disable access control 和输入参数-ac即可
在wsl中设置(可以设置到配置文件中)
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0