Commit 510f025a authored by w-e-w's avatar w-e-w

replace wsl-open with wslpath and explorer.exe

parent 801b72b9
......@@ -208,6 +208,6 @@ Requested path was: {path}
elif platform.system() == "Darwin":
subprocess.Popen(["open", path])
elif "microsoft-standard-WSL2" in platform.uname().release:
subprocess.Popen(["wsl-open", path])
subprocess.Popen(["explorer.exe", subprocess.check_output(["wslpath", "-w", path])])
else:
subprocess.Popen(["xdg-open", path])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment