microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.34k stars 814 forks source link

Windows 11 Pro - .wslconfig ignored #8304

Closed mitsos1os closed 2 years ago

mitsos1os commented 2 years ago

Version

Microsoft Windows [Version 10.0.22000.613]

WSL Version

Kernel Version

5.10.102.1

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

I am trying to add some configuration in .wslconfig regarding the fractional scaling issue, however, it seems that my configuration in the file is being ignored

These are the contents of my file:

[system-distro-env]
WESTON_RDP_DISABLE_HI_DPI_SCALING=false
WESTON_RDP_DISABLE_FRACTIONAL_HI_DPI_SCALING=false
WESTON_RDP_DEBUG_DESKTOP_SCALING_FACTOR=200

image

You can see that it is:

However, it does not get picked up. According to the thread I should be able to see the added vars in /mnt/wslg/weston.log but this is not the case for me.

Also, note that I have issued wsl --shutdown before checking to see if it is there, and also did a full restart

Expected Behavior

I would expect the options to get picked up and appear in weston.log as they are supposed to. Most importantly to have the effect of the linked WSLg fractional scaling issue.

Actual Behavior

Seems like the .wlsconfig is ignored

Diagnostic Logs

No response

benhillis commented 2 years ago

These settings go in %userprofile%\.wslgconfig

mitsos1os commented 2 years ago

Ohhhhhh sh**t... Thanks!