mirror of
https://github.com/rbreaves/kinto.git
synced 2025-07-31 16:26:39 +02:00
- Updated installer to check for x11 more reliably
This commit is contained in:
5
setup.py
5
setup.py
@@ -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:
|
||||
|
Reference in New Issue
Block a user