Merge pull request #6401 from acncagua/wsl-open

wsl-open
This commit is contained in:
AUTOMATIC1111 2023-01-06 07:56:15 +03:00 committed by GitHub
commit 8a13afd216
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -550,6 +550,8 @@ Requested path was: {f}
os.startfile(path)
elif platform.system() == "Darwin":
sp.Popen(["open", path])
elif "microsoft-standard-WSL2" in platform.uname().release:
sp.Popen(["wsl-open", path])
else:
sp.Popen(["xdg-open", path])