5
3

More than 5 years have passed since last update.

[備忘録]高DPI環境での WSL+VcXsrv の設定

Posted at

高DPI環境で WSL で動くプログラムがぼやけるときの対処法。

WSL側

.bashrcに以下を追記

export DISPLAY=localhost:0.0
export GDK_SCALE=2

.bashrcが読み込まれないときは
.bash_profileをこんな感じに

if [[ -f ~/.bashrc ]] ; then
    . ~/.bashrc
fi

Windows側

VcXsrv.exe(おそらく C:\Program Files\VcXsrv\ あたりにある) のプロパティから
高DPI設定の変更高いDPIスケールの動作を上書きします。 のチェックを入れる

これできれいになるはず。

5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3