minor syntax

This commit is contained in:
Eric Lay 2023-12-09 11:50:24 -06:00
parent b18f018d65
commit 2b8fc86242
4 changed files with 18 additions and 22 deletions

View File

@ -9,8 +9,8 @@ license=('GPL3')
depends=('python'
'python-pyqt5'
'python-yaml'
'hicolor-icon-theme'
'pacman')
'pacman-contrib'
'hicolor-icon-theme')
makedepends=('git')
optdepends=()
source=("git+https://github.com/ericlay/$pkgname.git")

View File

@ -1,4 +1,4 @@
# systrayUpdater
# systrayUpdater 󱉛
PyQt5 system tray applet notifier of available updates.
For Arch (based) systems only!

View File

@ -105,12 +105,6 @@ updateTimer.timeout.connect(count)
updateTimer.singleShot(1,count) # Initially populate available updates
updateTimer.start(wait)
# Adding items to the tray
tray = QSystemTrayIcon()
tray.setIcon(icon)
tray.setToolTip(avail)
tray.setVisible(True)
# Creating the menu/options
menu = QMenu()
runUpdate = QAction("Run Update")
@ -120,7 +114,9 @@ runUpdate.triggered.connect(update)
readNews.triggered.connect(news)
quit.triggered.connect(app.quit)
# Place the menu in the System Tray
# Create applet and place menu in it
tray = QSystemTrayIcon()
tray.setIcon(icon)
tray.setContextMenu(menu)
app.exec_()

View File

@ -2,7 +2,7 @@
Version=1.0
Type=Application
Name=SysTrayUpdater
Exec=/usr/bin/systrayUpdater
Exec=/usr/bin/systray-updater
Icon=/usr/share/icons/hicolor/symbolic/arch-blue-symbolic-80.svg
Terminal=false
StartupNotify=false