diff --git a/nwg_shell/installer.py b/nwg_shell/installer.py index 3d664c6..0e91cfb 100644 --- a/nwg_shell/installer.py +++ b/nwg_shell/installer.py @@ -306,7 +306,10 @@ def main(): else: print("Your computer will now restart...") time.sleep(3) - subprocess.call("sudo reboot", shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT) + if is_command("systemctl"): + subprocess.call("sudo systemctl reboot -f", shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT) + else: + subprocess.call("sudo reboot", shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT) if __name__ == '__main__':