From c5f1764dfa20212269c7ff8d9b646d454bf73ff1 Mon Sep 17 00:00:00 2001 From: Ryan Reaves Date: Tue, 25 Feb 2020 16:39:47 -0600 Subject: [PATCH] - Added both x11 checks to further compatibility --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d6c2db5..66071d0 100755 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ def install_ibus(): sys.exit() # check_x11 = cmdline("env | grep -i x11").strip() -check_x11 = cmdline("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: print("You are not using x11, please logout and back in using x11/Xorg")