Sebastian What I did was to create a file named solus-updates-indicator.service containing the following:
[Unit]
Description=Solus Updates Indicator
After=graphical-session.target
PartOf=graphical-session.target
[Service]
Type=simple
ExecStart=/usr/bin/python3 /home/**USERNAME**/.solus-updates-indicator.py
Restart=on-failure
RestartSec=5
Environment=DISPLAY=:0
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/bus
[Install]
WantedBy=graphical-session.target
Note that my target file is hidden, hence ".solus-updates-indicator.py". Don't forget to point the file to the actual location of your python script. Having done that, create the user systemd directory if it doesn't exist:
mkdir -p ~/.config/systemd/user/
Now, copy the service file into place:
cp solus-updates-indicator.service ~/.config/systemd/user/
Reload systemd so it sees the new file
systemctl --user daemon-reload
Next, enable it to start automatically at login
systemctl --user enable solus-updates-indicator.service
You can also start it immediately without rebooting
systemctl --user start solus-updates-indicator.service
The following commands may also prove to be useful:
systemctl --user status solus-updates-indicator.service
journalctl --user -u solus-updates-indicator.service
systemctl --user stop solus-updates-indicator.service
I tested everything this morning with the updated python script and everything worked perfectly with significant updates being done. I'm a happy camper.