Browse Source

replace wsl-open with wslpath and explorer.exe

w-e-w 1 năm trước cách đây
mục cha
commit
510f025a01
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules/util.py

+ 1 - 1
modules/util.py

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