Merge pull request #42 from rbreaves/dev

- Added Support for Manjaro and Arch distros using pacman
This commit is contained in:
Ben Reaves
2020-02-21 23:50:36 -06:00
committed by GitHub
2 changed files with 18 additions and 4 deletions

View File

@@ -18,7 +18,7 @@
},
{
"id": 2,
"name":"Mac - hid driver",
"name":"Mac - hid driver (Recommended - Also supports Windows keyboards)",
"type":"mac",
"active": false,
"description":"Standard Mac Keyboards with Apple driver",
@@ -32,7 +32,7 @@
},
{
"id": 3,
"name":"Mac Only",
"name":"Mac Only (VMs & non-official Apple keyboards)",
"type":"mac",
"active": true,
"description":"Standard Mac Keyboards",

View File

@@ -17,10 +17,10 @@ def cmdline(command):
def requirements(pkgm):
print(bcolors.CYELLOW + "You need to install some packages, " +run_pkg+ ", for Kinto to fully remap browsers during input focus.\n" + bcolors.ENDC)
print("sudo apt-get install -y " + run_pkg + "\n")
print("sudo " + pkgm + " " + run_pkg + "\n")
run_install = yn_choice(bcolors.CYELLOW + "Would you like to run it now? (Will require sudo privileges.)\n" + bcolors.ENDC)
if(run_install):
os.system("sudo " + pkgm + " install -y " + run_pkg)
os.system("sudo " + pkgm + run_pkg)
print("\n")
def install_ibus():
@@ -41,10 +41,24 @@ if len(check_x11) == 0:
check_xbind = cmdline("which xbindkeys 2>/dev/null").strip()
check_xdotool = cmdline("which xdotool 2>/dev/null").strip()
pkgm = cmdline("which apt 2>/dev/null").strip()
if len(pkgm) == 0:
pkgm = cmdline("which dnf 2>/dev/null").strip()
if len(pkgm) > 0:
pkgm += " install -y "
else:
pkgm += " install -y "
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:
print("No supported package manager found. Exiting...")
sys.exit()