LoginSignup
1
1

More than 1 year has passed since last update.

WSL2上で起動したGUIアプリのDPIをディスプレイに合わせる

Last updated at Posted at 2022-10-21
  • Windows11上のWSL2 Ubuntu22.04LTSで起動したGUIアプリはWSLg経由でWindows側に表示できるけど、 (4Kディスプレイを使っているからなのか) 画面が小さすぎて合っていない
  • Spacemacsは文字サイズでなんとかなるけど、他のGUIツールが小さすぎるのはきびしい

こうすれば調整できる

~/.bash_profile
export GDK_SCALE=2
export GDK_DPI_SCALE=0.75

cf. https://github.com/microsoft/wslg/issues/590#issuecomment-1284025721

issueにdpiと書いてあるからそうしたけど解像度とdpiの使い分けをわかっていない

1
1
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
1
1