Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about ${HOME}/.wslconfig error #210

Open
NightmareZero opened this issue Nov 28, 2023 · 3 comments
Open

about ${HOME}/.wslconfig error #210

NightmareZero opened this issue Nov 28, 2023 · 3 comments

Comments

@NightmareZero
Copy link

NightmareZero commented Nov 28, 2023

Describe the bug
Every time this distribution starts up, it reports an error similar to this. Other distributions, such as Ubuntu, do not have this issue.

wsl: Expected ']' in C:\Users\xx\.wslconfig:6
wsl: Invalid key name in C:\Users\xx\.wslconfig:7
wsl: Expected '=' in C:\Users\xx\.wslconfig:8
wsl: Expected '=' in C:\Users\xx\.wslconfig:9
wsl: Invalid key name in C:\Users\xx\.wslconfig:10
wsl: Expected '=' in C:\Users\xx\.wslconfig:11

The content of lines 6 to 11 is

[system-distro-env]
; hi-dpi
WESTON_RDP_HI_DPI_SCALING = true
WESTON_RDP_FRACTIONAL_HI_DPI_SCALING = false
; 100 to 500
WESTON_RDP_DEBUG_DESKTOP_SCALING_FACTOR = 120

To Reproduce
Steps to reproduce the behavior:

  1. invoke wsl --shutdown
  2. invoke wsl -d fedoraremix
  3. See error

Expected behavior
The content in .wslconfig should not be involved in the startup of WSL

Screenshots

Additional context

Basic Troubleshooting Checklist

[x ] I have searched Google for the error message.
[ x] I have checked official WSL troubleshooting documentation: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#confirm-wsl-is-enabled.
[ x] I have searched the official Microsoft WSL issues page: https://github.com/Microsoft/WSL/issues.
[ x] I have searched the WLinux issues page: https://github.com/WhitewaterFoundry/WLinux/issues.
[ x] I have reset WLinux: Settings->Apps->Apps & features->WLinux->Advanced Options->Reset.
[ x] I have disabled and re-enabled WSL in Windows Features.
[ x] I have run Windows 10 updates and restarted.

What other troubleshooting have you attempted?

Insert here:

Fedora Remix for WSL Version

Find: Settings->Apps->Apps & features->Fedora Remix for WSL Version->Advanced Options->Version.
Also, cat /etc/os-release

Insert here:
NAME="Fedora Remix for WSL"
VERSION="39"
ID=fedoraremixforwsl
ID_LIKE=fedora
VERSION_ID=39
PLATFORM_ID="platform:f39"
PRETTY_NAME="Fedora Remix for WSL"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:39"
HOME_URL="https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL"
SUPPORT_URL="https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL"
BUG_REPORT_URL="https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL/issues"
PRIVACY_POLICY_URL="https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL/blob/master/PRIVACY.md"
FEDORA_REMIX_VERSION=39.0.1

Windows Build

Run 'systeminfo | findstr /C:"OS"' in Command Prompt and insert here:
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.22631 N/A Build 22631
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free

For help on retrieving: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#check-your-build-number

@crramirez
Copy link
Contributor

As far I know any of the scripts in Fedora Remix parses the .wslconfig,naybe wslutilities. I'll try to reproduce and come back.

@wpafbo79
Copy link

Any updates on this? It is not Fedora Remix specific. It happens with Ubuntu, as well.

cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

and

cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

@crramirez
Copy link
Contributor

Hello,

As long as I know this configuration belongs to the wslGconfig file and not the wslconfig one

https://github.com/microsoft/wslg/wiki/WSLg-Configuration-Options-for-Debugging

Regards,
Carlos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants