We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc2586e commit b2a7894Copy full SHA for b2a7894
src/Files.App/Utils/Global/WSLDistroManager.cs
@@ -29,10 +29,10 @@ public static async Task UpdateDrivesAsync()
29
try
30
{
31
// Check if WSL is installed
32
- const string WslRegistryPath = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss";
+ const string WslRegistryPath = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\MSI";
33
using (var key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(WslRegistryPath))
34
35
- if (key != null && key.GetSubKeyNames().Length == 0)
+ if (key is null || key.GetValue("InstallLocation") is null)
36
return;
37
}
38
0 commit comments