replace wsl-open with wslpath and explorer.exe

This commit is contained in:
w-e-w 2024-06-04 02:23:43 +09:00
parent 801b72b92b
commit 510f025a01
1 changed files with 1 additions and 1 deletions

View File

@ -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])