From 9dff7e0f7d2ad3b92d9b610612e7d996ce8c8d5d Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Thu, 10 Dec 2020 19:34:39 -0600 Subject: [PATCH] - Adding support for WSL2 --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3863039..f18d0c7 100755 --- a/setup.py +++ b/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() 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") sys.exit() + elif os.name == 'posix': + print("You may be trying to run Kinto under WSL2 w/ Linux. We will continue...") else: print("\nYou are detected as running Windows.") windows_setup()