()
| 516 | print(bcolors.WARNING + message + bcolors.ENDC) |
| 517 | |
| 518 | def main(): |
| 519 | try: |
| 520 | distro = get_distro() |
| 521 | with open(os.path.join(script_path, 'dependencies.json')) as f: |
| 522 | deps_dict = json.load(f) |
| 523 | |
| 524 | if (not args.ignore_core_deps and len(args.install) == 0) or args.install_core_deps: |
| 525 | print("[EAF] ------------------------------------------") |
| 526 | install_core_deps(distro, deps_dict) |
| 527 | print("[EAF] ------------------------------------------") |
| 528 | |
| 529 | if not args.install_core_deps: |
| 530 | print("[EAF] ------------------------------------------") |
| 531 | install_app_deps(distro, deps_dict) |
| 532 | print("[EAF] ------------------------------------------") |
| 533 | |
| 534 | current_desktop = os.getenv("XDG_CURRENT_DESKTOP") or os.getenv("XDG_SESSION_DESKTOP") |
| 535 | if current_desktop in ["Hyprland", "sway"]: |
| 536 | print("[EAF] Compiling reinput") |
| 537 | subprocess.Popen("gcc reinput/main.c -o reinput/reinput `pkg-config --cflags --libs libinput libevdev libudev`", |
| 538 | shell=True) |
| 539 | |
| 540 | print("[EAF] install-eaf.py finished.\n") |
| 541 | |
| 542 | for msg in important_messages: |
| 543 | print_warning_message(msg) |
| 544 | except KeyboardInterrupt: |
| 545 | print("[EAF] install-eaf.py aborted!") |
| 546 | sys.exit() |
| 547 | |
| 548 | |
| 549 | if __name__ == '__main__': |
no test coverage detected