WSL2でVcXsrvを使う
WSLでは
code:shell.bash
export DISPLAY=:0.0
で済んだが、WSL2はそれだと動かない。以下のように設定する必要がある 前準備
shellの設定:
code:wsl2.bash
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F269455%2F22041d37-0ab3-5c18-46e8-94aea8a1b0d0.png?ixlib=rb-1.2.2&auto=format&gif-q=60&q=75&w=1400&fit=max&s=ac980aa8368ae7909545ec528d207874
2022-07-10 19:55:39 Disable access controlでもいけた@Windows 11takker.icon
以下のエラーの対処として
code:log
Authorization required, but no authorization protocol specified
xsel: Can't open display: (null)
でうまくいくと思ったらなんかだめだったtakker.icon
https://gyazo.com/0b54139547e29e16a11104b39f2dea71
何が行けないんだろうか?
https://gyazo.com/b7e82b0ed7f558a94b002f393509f91f
動いた
https://gyazo.com/f11e61da42ad43ebc53d69edec90ef51
やったぜ。