将 wsl1 更新道到 wsl2 后,vcxsrv 需要重新配置冰并且配置方法变了

WSL1为:

export DISPLAY=localhost:0

WSL2为:

export DISPLAY=`cat /etc/resolv.conf | grep nameserver | awk '{print $2}'`:0

随后打开Xlaunch,注意要勾选Disable access control,否则会报错如下

Authorization required, but no authorization protocol specified
Error: Can't open display

VcXSrv on WSL2 配置

相关文章:

  • 2022-02-14
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-09-26
相关资源
相似解决方案