diff options
Diffstat (limited to 'src/backend/syncall.py')
-rw-r--r-- | src/backend/syncall.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/syncall.py b/src/backend/syncall.py index 42b0b9c..c024a37 100644 --- a/src/backend/syncall.py +++ b/src/backend/syncall.py @@ -1,6 +1,7 @@ #!/usr/bin/python3 import animation +import os import signal import sys import time @@ -40,7 +41,7 @@ def start(gfx_ui=False): print(f"Killing application in : {i} seconds!") time.sleep(1) - sys.exit(app.exec_()) # kill GUI window + os.kill(os.getpid(), signal.SIGTERM) # kill GUI window else: print( f"{sisyphus.getclr.bright_red}\nNo internet connection detected; Aborting!\n{sisyphus.getclr.reset}") @@ -65,7 +66,7 @@ def start(gfx_ui=False): print(f"Killing application in : {i} seconds!") time.sleep(1) - sys.exit(app.exec_()) # kill GUI window + os.kill(os.getpid(), signal.SIGTERM) # kill GUI window else: if "packages-next" in bhst_addr: print( |