- Added both x11 checks to further compatibility

This commit is contained in:
Ryan Reaves
2020-02-25 16:39:47 -06:00
parent c8ca073875
commit c5f1764dfa

View File

@@ -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")