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

WSL1 support #8

Open
sanjosanjo opened this issue Nov 10, 2023 · 3 comments
Open

WSL1 support #8

sanjosanjo opened this issue Nov 10, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@sanjosanjo
Copy link

sanjosanjo commented Nov 10, 2023

I notice that WSL2 is mentioned in the summary of the project. Are there any issues with operating on a WSL1 installation?
Editing after trying the tool on Windows 11: I notice that there is a discrepancy in the displayed version number in the main windows vs. that in the "Distribution properties" windows. I only have a single distribution on the machine. Is this expected? Or does this indicate some problem with my installation?
wsl_info

@emeric-martineau
Copy link
Owner

Hi @sanjosanjo,

this is a bug. I try to fix it as soon as possible.

@emeric-martineau emeric-martineau added the bug Something isn't working label Nov 13, 2023
@sanjosanjo
Copy link
Author

sanjosanjo commented Nov 13, 2023

Thanks. Just FYI, I installed WSL1 when this machine was Win10 and then it got upgraded to Win11. The WSL1 installation has been quirky with Win11 and I've been wondering if I should fully uninstall and reinstall WSL1. That's actually why I was using your tool - to help with the complete re-install of WSL1. I want to make sure I completely remove any remnant of the installation from Win10 to eliminate any possibilities.

@emeric-martineau
Copy link
Owner

Hello @sanjosanjo,

WslGuiTool read distribution information from HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss registry to fill distribution propertiies windows.

When I create a distribution under WSL1, in the registry, WSL save Version to 2 :/ It's sucks.

But, the list in main window run wsl command line and in this case, wsl command line return version 1.

My v1 distribution has flag 0111 (see https://learn.microsoft.com/en-us/windows/win32/api/wslapi/ne-wslapi-wsl_distribution_flags)

But my v2 distribution has flag 1 0101.

Can you give me flags of you ditribution v1 and v2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants