moved icons
This commit is contained in:
parent
3a58e9a1fd
commit
4c23a49bb3
4
PKGBUILD
4
PKGBUILD
|
@ -1,6 +1,6 @@
|
||||||
# Maintainer: Eric Lay <ericlaytm@gmail.com>
|
# Maintainer: Eric Lay <ericlaytm@gmail.com>
|
||||||
pkgname=systrayupdater
|
pkgname=systrayupdater
|
||||||
pkgver=r52.4ba5e77
|
pkgver=r53.3a58e9a
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="PyQt5 system tray applet notifier of available updates"
|
pkgdesc="PyQt5 system tray applet notifier of available updates"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -26,5 +26,5 @@ package() {
|
||||||
install -Dm755 systray-updater -t "$pkgdir/usr/bin"
|
install -Dm755 systray-updater -t "$pkgdir/usr/bin"
|
||||||
install -Dm755 config.yml -t "$pkgdir/etc/$pkgname"
|
install -Dm755 config.yml -t "$pkgdir/etc/$pkgname"
|
||||||
install -Dm666 systrayupdater.desktop -t "$pkgdir/usr/share/applications"
|
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"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
# Get needed modules
|
# Get needed modules
|
||||||
|
import sys
|
||||||
import yaml
|
import yaml
|
||||||
import webbrowser
|
import webbrowser
|
||||||
import subprocess
|
import subprocess
|
||||||
from os import path
|
from os import path
|
||||||
from time import sleep
|
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from PyQt5.QtCore import QTimer
|
from PyQt5.QtCore import QTimer
|
||||||
from PyQt5.QtGui import *
|
from PyQt5.QtGui import *
|
||||||
|
@ -26,7 +26,7 @@ try:
|
||||||
f = open(config)
|
f = open(config)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
print("No config file found\n")
|
print("No config file found\n")
|
||||||
sys.exit()
|
sys.exit(1)
|
||||||
conf = yaml.load(f,yaml.FullLoader)
|
conf = yaml.load(f,yaml.FullLoader)
|
||||||
term = str(conf['terminal'])
|
term = str(conf['terminal'])
|
||||||
opt = str(conf['option'])
|
opt = str(conf['option'])
|
||||||
|
@ -34,7 +34,7 @@ wait = int(conf['timer']) * 60000
|
||||||
icn = str(conf['icon'])
|
icn = str(conf['icon'])
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
iconDir = '/usr/share/icons/hicolor/symbolic/apps/'
|
iconDir = '/usr/share/icons/systrayupdater/'
|
||||||
match icn:
|
match icn:
|
||||||
case "white":
|
case "white":
|
||||||
icon = QIcon(path.join(iconDir,'arch-white-symbolic-24.svg'))
|
icon = QIcon(path.join(iconDir,'arch-white-symbolic-24.svg'))
|
||||||
|
|
|
@ -3,7 +3,7 @@ Version=1.0
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=SysTrayUpdater
|
Name=SysTrayUpdater
|
||||||
Exec=/usr/bin/systray-updater
|
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
|
Terminal=false
|
||||||
StartupNotify=false
|
StartupNotify=false
|
||||||
Categories=Utility;
|
Categories=Utility;
|
||||||
|
|
Loading…
Reference in New Issue