Extension is restarted (?) after screen unlock
Opened this issue · 1 comments
Description
It seems that Astra Monitor starts anew each time the GNOME session is locked and then unlocked.
Steps to Reproduce
- While GNOME and Astra Monitor is running and the graphs are filled with data, lock the screen.
- Wait a few seconds and then unlock the screen.
- A few moments later, Astra Monitor's icons, bars, graphs, etc. are displayed, but with empty history.
- It seems that Astra Monitor is restarted after each screen lock / unlock sequence.
Screenshots
Environment
- Astra Monitor Version: v6
- GNOME Version: 45.2
- Operating System and Version: Ubuntu 23.10
- Other Relevant System Information: NA
Logs
Additional Context
I don't know if this is a "feature" or "bug"!
I changed it to enhancement because this behavior is required by the extensions.gnome.org team. Anything created by the extension has to be destroyed on deactivation, and from gnome 45 (I think) at the lock the extensions are deactivated. To solve this we have two options:
- ask for permissions to keep the extension active even in the lock [and honestly I would prefer not to choose this route].
- save the data to disk and reload it when the extension is reactivated
the third option would be to ignore this and that's the choice I made at the moment, especially since the graph has a time span of a few minutes currently and often when the lock screen is activated the user is away for that time so I don't know how much sense it makes to recover the graphs. Also, resources would not be monitored during the lock-screen period anyway.
I am leaving this issue open at the moment on hold, because maybe I will tackle this in the future, however, for now, I do not have an idea how to address it.