Skip to content

Conversation

@randomnoise
Copy link
Contributor

@randomnoise randomnoise commented Oct 28, 2025

If automated updates are enabled, one may miss for a time that there is a need for a system reboot.

This change warns from the system tray that a system reboot is required.


Hierarchy of icon choice for informing from the system tray

Currently:

  1. Show new updates are available
  2. Show system is up to date

(edited) The order with this change:

  1. Show a reboot is required
  2. Show new updates are available
  3. Show system is up to date

Screenshot of the change: (panel and tray icon are exaggerated for convenience)
reboot-required


GTK SVG color use reference:

@mtwebster
Copy link
Member

This works, but it currently only shows if the system ends up being completely up-to-date. I think it should show any time the reboot banner is showing, which would include more updates being available.

Maybe something like:
image

randomnoise and others added 2 commits November 27, 2025 11:57
Based on `mintupdate-error-symbolic.svg`

GTK SVG color use reference:
https://docs.gtk.org/gtk4/icon-format.html#supported-svg-attributes
Prioritize the 'reboot required' icon over 'available updates' according
to mtwebster's feedback and continue informing if there are selected
updates.

Also align with the opening delimiter, based on PEP8 style guide.
Reference: https://peps.python.org/pep-0008/#indentation

Co-authored-by: Michael Webster <miketwebster@gmail.com>
@randomnoise
Copy link
Contributor Author

This works, but it currently only shows if the system ends up being completely up-to-date. I think it should show any time the reboot banner is showing, which would include more updates being available.

Thanks for the feedback 👍

I prioritized the "Reboot required" icon over "Available updates".

Also, I moved status_string to a higher scope to keep the "updates selected" text, to keep the changes to a minimum:
warning-tray-icon-with-updates-selected

@mtwebster mtwebster merged commit 7ce814a into linuxmint:master Nov 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trayicon should indicate a (needed) reboot after kernelupdate

2 participants