Comment 9 for bug 548981

Revision history for this message
frizzle21 (frederik-nnaji) wrote : Re: [Bug 548981] Re: Indicator should only turn red after the last package has been installed

The following email helped me understand a bit where all this comes from:
https://lists.ubuntu.com/archives/ubuntu-devel-announce/2006-January/000052.html

i tried "sudo /usr/share/update-notifier/notify-reboot-required", which
created the file "/var/run/reboot-required".
The Session Menu Indicator icon turned red instantly.

Knowing this, it is obvious, every application with root privileges can use
this script to set the flag i.e. to create "/var/run/reboot-required".
And knowing this, it is logical to have another flag which tells us whether
an upgrade is currently in progress or not, since that would be the only
thing that would conflict with suggesting a reboot to complete the update
procedure to the user.