aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-01-06 04:56:15 +0000
committerGitHub <noreply@github.com>2023-01-06 04:56:15 +0000
commit8a13afd216d2b483e0a4dbee99f2018c39365af3 (patch)
treee856abd0f8d41192abc326a4f064995f4476c4b1 /modules/ui.py
parent85fa4eacea859ef2c78d719f36b25a2e19dd0be1 (diff)
parentd61a5aa4f623f6630670241aca8fc5c2a6381769 (diff)
downloadstable-diffusion-webui-gfx803-8a13afd216d2b483e0a4dbee99f2018c39365af3.tar.gz
stable-diffusion-webui-gfx803-8a13afd216d2b483e0a4dbee99f2018c39365af3.tar.bz2
stable-diffusion-webui-gfx803-8a13afd216d2b483e0a4dbee99f2018c39365af3.zip
Merge pull request #6401 from acncagua/wsl-open
wsl-open
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 81d96c5b..030f0685 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -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])