This commit is contained in:
Eric Lay 2023-12-07 19:12:02 -06:00
parent 16986713b4
commit 0af7ad3e0d
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# Maintainer: Eric Lay <ericlaytm@gmail.com>
pkgname=systrayupdater
pkgver=0.1
pkgver=r34.1698671
pkgrel=1
pkgdesc="PyQt5 system tray applet to notify of available updates"
arch=('x86_64')
@ -26,4 +26,4 @@ package() {
install -Dm755 systrayUpdater -t "$pkgdir/usr/bin"
install -Dm666 SysTrayUpdater.desktop -t "$pkgdir/usr/share/applications"
install -Dm755 ./*.png systrayupdater.yml -t "$pkgdir/$HOME/.config/$pkgname"
}
}

View File

@ -17,12 +17,12 @@ outputList = ""
# Use config.yml file to allow for compatibility with
# most terminal emulators possible & custom icon / timer duration
with open(path.expanduser("~/.config/systrayUpdater/systrayUpdater.yml")) as f:
with open(path.expanduser("~/.config/systrayUpdater/systrayupdater.yml")) as f:
conf = yaml.load(f, yaml.FullLoader)
term = str(conf['terminal'])
opt = str(conf['option'])
wait = int(conf['timer']) * 60000
icn = path.join(path.expanduser("~/.config/systrayUpdater/"), str(conf['icon']))
icn = path.join(path.expanduser("~/.config/systrayupdater/"), str(conf['icon']))
f.close()
# Run checkupdates command