purejava/fedora-update

Icon does not go away after updates are installed

Closed this issue · 3 comments

I configured the extension to only show an icon when there are package updates. When I start the update through the extension it would be nice for the icon to go away once all updates are installed successfully.

To be sure I understand you correctly: you unchecked "Indicator > Always visible" in the basic settings, right?

Using this, the icon goes away, after the extension has checked for updates the next time.

Does this not feel right for you?

Yes, "Indicator > Always" is unchecked. I think it would be better if the icon goes away right after all updates finished installing.

Maybe it's possible to check the return code for the code that starts the terminal to install the updates and if that return code indicates success, i.e. all updates were installed - then hide the icon.

Having to wait for the extension to check for updates to make the icon go away at a later point in time is not as ideal.

Thanks for your further explanations.

The feature you are looking for is already implemented. Check the extensions advanced settings and enter /var/lib/rpm to the Package manager local directory path:
advanced settings
Doing this, that directory gets monitored for changes and a status check for the extension gets triggered, once the directory changes. As it contains the database for package updates, this leads to the icon disappear (assuming the switch mentioned above is turned off), as you wish.

Nevertheless, I'll add /var/lib/rpm as the default value for this setting. So it will be there on a newly installed extension.