moved icons

This commit is contained in:
Eric Lay 2023-12-16 08:09:35 -06:00
parent 3a58e9a1fd
commit 4c23a49bb3
3 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# Maintainer: Eric Lay <ericlaytm@gmail.com>
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"
}

View File

@ -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'))

View File

@ -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;