diff --git a/PKGBUILD b/PKGBUILD index 46531fc..6e2edb3 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Eric Lay pkgname=systrayupdater -pkgver=r52.4ba5e77 +pkgver=r53.3a58e9a pkgrel=1 pkgdesc="PyQt5 system tray applet notifier of available updates" arch=('any') @@ -26,5 +26,5 @@ package() { install -Dm755 systray-updater -t "$pkgdir/usr/bin" install -Dm755 config.yml -t "$pkgdir/etc/$pkgname" install -Dm666 systrayupdater.desktop -t "$pkgdir/usr/share/applications" - install -Dm644 icons/*.svg -t "$pkgdir/usr/share/icons/hicolor/symbolic/apps" + install -Dm644 icons/*.svg -t "$pkgdir/usr/share/icons/$pkgname" } diff --git a/systray-updater b/systray-updater index 28269ac..5d75edf 100755 --- a/systray-updater +++ b/systray-updater @@ -1,11 +1,11 @@ #!/usr/bin/env python # Get needed modules +import sys import yaml import webbrowser import subprocess from os import path -from time import sleep from functools import partial from PyQt5.QtCore import QTimer from PyQt5.QtGui import * @@ -26,7 +26,7 @@ try: f = open(config) except FileNotFoundError: print("No config file found\n") - sys.exit() + sys.exit(1) conf = yaml.load(f,yaml.FullLoader) term = str(conf['terminal']) opt = str(conf['option']) @@ -34,7 +34,7 @@ wait = int(conf['timer']) * 60000 icn = str(conf['icon']) f.close() -iconDir = '/usr/share/icons/hicolor/symbolic/apps/' +iconDir = '/usr/share/icons/systrayupdater/' match icn: case "white": icon = QIcon(path.join(iconDir,'arch-white-symbolic-24.svg')) diff --git a/systrayupdater.desktop b/systrayupdater.desktop index aa44d2b..424380a 100644 --- a/systrayupdater.desktop +++ b/systrayupdater.desktop @@ -3,7 +3,7 @@ Version=1.0 Type=Application Name=SysTrayUpdater Exec=/usr/bin/systray-updater -Icon=/usr/share/icons/hicolor/symbolic/arch-blue-symbolic-80.svg +Icon=/usr/share/icons/hicolor/systrayupdater/arch-blue-symbolic-80.svg Terminal=false StartupNotify=false Categories=Utility;