Amebis / eduVPN

Windows eduVPN Client
GNU General Public License v3.0
39 stars 17 forks source link

consider saving application state not only on application exit #222

Closed ghost closed 1 year ago

ghost commented 1 year ago

Currently it seems that the application state is only saved when the application (cleanly) exists. Here are various scenarios where the application doesn't get cleanly closed, perhaps there are more:

  1. application crash;
  2. windows kills the application on shutdown/reboot because it doesn't respond fast enough to the "exit" signal;
  3. windows crash / spontaneous reboot

These are not necessarily the fault of the eduVPN app, there's a lot of subtly and less subtly broken Windows installations out there, but perhaps something (more) can be done to "keep state" in case these happen...

rozmansi commented 1 year ago

Mind, that only settings that still do not trigger saving on the go are the window position and state (minimized, closed, etc.). Those settings are transferred from Windows to our settings collection on client close (or session end) and not on each client window move or resize. For performance reasons.