ultrabug / py3status

py3status is an extensible i3status wrapper written in python
https://ultrabug.github.io/py3status/
BSD 3-Clause "New" or "Revised" License
893 stars 261 forks source link

Make arch_updates module more responsive to system updates #2215

Closed geoffliu closed 11 months ago

geoffliu commented 12 months ago

The goal of this PR is that we want to invalidate the cached output of the arch_updates module after a system update. The gist of the approach is this:

This whole business of bypassing the built-in caching feels a bit dirty, but I'm not familiar with py3status's full module API to know if there's a better approach? @ultrabug What do you think?

Also, now that the module can be more responsive, we can change the default of refresh interval to be longer without degrading user experience

ultrabug commented 11 months ago

I trust you as a module user and the logic LGTM thanks!