File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ def exiting():
360
360
gf_url = "http://%s:%d/" % (config .HOST_ADDRESS , config .HTTP_PORT )
361
361
362
362
if not dontopenuionstartup :
363
- if ' Microsoft' in platform .uname ().release or ' microsoft' in platform .uname ().release :
363
+ if ( " Microsoft" in platform .uname ().release or " microsoft" in platform . uname (). release ) and "WSL" not in platform .uname ().release :
364
364
os .system ("/mnt/c/windows/system32/rundll32.exe url.dll,FileProtocolHandler %s" % gf_url )
365
365
elif os .environ .get ('DISPLAY' ):
366
366
if os .geteuid () != 0 and shutil .which ("chrome" ):
@@ -416,7 +416,7 @@ def exiting():
416
416
gf_url = "http://%s:%d/" % (config .HOST_ADDRESS , config .HTTP_PORT )
417
417
418
418
if not dontopenuionstartup :
419
- if ' Microsoft' in platform .uname ().release or ' microsoft' in platform .uname ().release :
419
+ if ( " Microsoft" in platform .uname ().release or " microsoft" in platform . uname (). release ) and "WSL" not in platform .uname ().release :
420
420
os .system ("/mnt/c/windows/system32/rundll32.exe url.dll,FileProtocolHandler %s" % gf_url )
421
421
elif os .environ .get ('DISPLAY' ):
422
422
if os .geteuid () != 0 and shutil .which ("chrome" ):
You can’t perform that action at this time.
0 commit comments