For anyone who would prefer not to use pamac-manager, but who is using flatpaks.
there is this tracy Barlow / flatpak-tray-icon · GitLab
# flatpak-tray-icon
Provides a System Tray Icon, that informs when a flatpak update is available.
Currently requires QT6 (pyside6)
Opens a KDE Konsole when update events need to be interacted with.
Clone or Download the Python code create a Project Tree under the Directory where you store your Projects
Projects
└── FlatpakTrayIcon
└── flatpak-tray-icon
├── README.md
└── src
├── FlatpakTrayIcon.desktop
└── FlatpakTrayIcon.py
copy the two files into it.
create a venv in the flatpak-tray-icon directory
in the Terminal
python3 -m venv venv
activate it
source venv/bin/activate
install pyside6
python3 -m pip install pyside6
cd to the src directory
cd src
you should now be able to test run the application
python3 FlatpakTrayIcon.py
The application should load into the System Tray, quit the application
Cd back to the parent directory
cd ..
Install nuitka
python3 -m pip install nuitka
cd to the src directory
cd src
compile the Python Code with nuitka
nuitka --follow-imports --enable-plugin=pyside6 --onefile FlatpakTrayIcon.py
You should endup with a file named
FlatpakTrayIcon.bin
This file should execute outside of the virtual environment (venv) as it is a stand alone executable.
I am currently installing the file to a .bin directory under my home directory at
~/.bin/FlatpakTrayIcon
Don't forget to place the icons directory there as well. You should have the following tree
FlatpakTrayIcon
├── FlatpakTrayIcon.bin
└── icons
├── flatpak-icon-ok.png
└── flatpak-icon-updates.png
The included .desktop file points there.
Place a copy of FlatpakTrayIcon.desktop in ~/.local/share/Applications and, if you want it to Autostart on Boot/Reboot, place a copy in ~/.config/Autostart
I now have a Tray icon for Flatpaks, and one for Octopi (distro repos and AUR)
