Skip to content

Commit

Permalink
replace wsl-open with wslpath and explorer.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Jun 3, 2024
1 parent 801b72b commit ed393e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,6 @@ def open_folder(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])

0 comments on commit ed393e6

Please sign in to comment.