Skip to content

Commit

Permalink
Use Environment.SystemDirectory to prevent the wsl path fixed problem
Browse files Browse the repository at this point in the history
  • Loading branch information
firejox committed Oct 12, 2022
1 parent 32ba9a2 commit 89f0475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion winsocat/Wsl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class WslPiperInfo
{
private static readonly bool WslCheck = File.Exists(@"C:\Windows\System32\wsl.exe");
private static readonly bool WslCheck = File.Exists(Path.Join(Environment.SystemDirectory, "wsl.exe"));
private readonly string _command;
public string Command => _command;

Expand Down

0 comments on commit 89f0475

Please sign in to comment.