2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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の使い分けをわかっていない

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?