mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-05 18:38:26 +02:00
- Adding support for WSL2
This commit is contained in:
5
setup.py
5
setup.py
@@ -104,9 +104,12 @@ if platform.system() == 'Windows':
|
|||||||
check_x11 = cmdline("(env | grep -i x11 || loginctl show-session \"$XDG_SESSION_ID\" -p Type) | awk -F= '{print $2}'").strip()
|
check_x11 = cmdline("(env | grep -i x11 || loginctl show-session \"$XDG_SESSION_ID\" -p Type) | awk -F= '{print $2}'").strip()
|
||||||
|
|
||||||
if len(check_x11) == 0:
|
if len(check_x11) == 0:
|
||||||
if os.name != 'nt':
|
if os.name != 'nt' and os.name != 'posix':
|
||||||
|
print(os.name)
|
||||||
print("You are not using x11, please logout and back in using x11/Xorg")
|
print("You are not using x11, please logout and back in using x11/Xorg")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
elif os.name == 'posix':
|
||||||
|
print("You may be trying to run Kinto under WSL2 w/ Linux. We will continue...")
|
||||||
else:
|
else:
|
||||||
print("\nYou are detected as running Windows.")
|
print("\nYou are detected as running Windows.")
|
||||||
windows_setup()
|
windows_setup()
|
||||||
|
Reference in New Issue
Block a user