- Updated installer to check for x11 more reliably

This commit is contained in:
Ryan Reaves
2020-02-25 15:22:48 -06:00
parent 8086a56b7d
commit 0e23aae082

View File

@@ -33,7 +33,8 @@ def install_ibus():
input("IBus has been set as the default Input Method.\nPress any key to exit and re-run after logoff & logon...")
sys.exit()
check_x11 = cmdline("env | grep -i x11").strip()
# check_x11 = cmdline("env | grep -i x11").strip()
check_x11 = cmdline("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")
@@ -55,8 +56,6 @@ if len(pkgm) == 0:
pkgm = cmdline("which pacman 2>/dev/null").strip()
if len(pkgm) > 0:
pkgm += " -S "
else:
print("hello")
if len(pkgm) == 0: