replace wsl-open with wslpath and explorer.exe
This commit is contained in:
parent
801b72b92b
commit
510f025a01
|
@ -208,6 +208,6 @@ Requested path was: {path}
|
||||||
elif platform.system() == "Darwin":
|
elif platform.system() == "Darwin":
|
||||||
subprocess.Popen(["open", path])
|
subprocess.Popen(["open", path])
|
||||||
elif "microsoft-standard-WSL2" in platform.uname().release:
|
elif "microsoft-standard-WSL2" in platform.uname().release:
|
||||||
subprocess.Popen(["wsl-open", path])
|
subprocess.Popen(["explorer.exe", subprocess.check_output(["wslpath", "-w", path])])
|
||||||
else:
|
else:
|
||||||
subprocess.Popen(["xdg-open", path])
|
subprocess.Popen(["xdg-open", path])
|
||||||
|
|
Loading…
Reference in New Issue