【GiraKoo】WSLg,x11下鼠标显示超大问题对策
【GiraKoo】WSLg下鼠标显示超大问题对策
环境
- Windows 10,11
- WSLg
- x11
- 4K显示屏
现象
- 在wslg下,打开Android Studio客户端,鼠标显示过大。
原因
从环境猜测,应当是x11转发导致的问题。
对策
- 在/etc/profile(或者在/etc/profile.d/中添加一个以.sh结尾的文件)中添加以下内容:
export XCURSOR_SIZE=24
- 新开启一个终端,或者在当前终端中执行
source /etc/profile
注意
- 也可以将上述内容放在~/.bashrc中,但是这种方案将无法影响到非控制台启动的程序。
参考
[Why is my cursor so huge when using X11 forwarding?]( https://unix.stackexchange.com/questions/640321/why-is-my-cursor-so-huge-when-using-x11-forwarding#:~:text=XCURSOR_SIZE This variable sets the desired cursor size ,,to%20guess%20the%20size%20of%20a%2016-point%20cursor.)

浙公网安备 33010602011771号