From 06160f06202ea7a0fbf5f32fe4c70fd350a69b3e Mon Sep 17 00:00:00 2001 From: airclay Date: Sat, 4 Sep 2021 21:30:58 -0500 Subject: [PATCH] WIP --- systrayUpdater | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/systrayUpdater b/systrayUpdater index 4627347..37362ba 100755 --- a/systrayUpdater +++ b/systrayUpdater @@ -35,7 +35,7 @@ def count(): # Download pkg's to cache def cacheUpdates(): cmd = ['checkupdates', '-d'] - subprocess.cmd(cmd) + subprocess.run(cmd) # Run system update def update(): @@ -52,7 +52,7 @@ def newText(): count() # Download pkg's to cache -if cache == True: +if eval(cache) == True: cacheUpdates() app = QApplication([]) @@ -78,7 +78,7 @@ menu.addAction(option1) timer = QTimer() timer.timeout.connect(newText) # Download pkg's to cache on timeout -if cache == True: +if eval(cache) == True: timer.timeout.connect(cacheUpdates) timer.start(wait)