Cameyo allows gracefully closing applications during sudden termination events such as tab / browser closing or connectivity loss.

It does so by sending all active windows a message WM_CLOSE followed by a WM_QUIT.


To activate this mechanism, set PowerTag !GracefulDiscoSec to the duration (in seconds) required for the application to properly quit. This duration should be between 10-15 seconds in most cases:

!GracefulDiscoSec=15

You can also use a session script StartupGracefulDisco, i.e:

!STARTUP_GRACEFULDISCO_PS1=...

Remarks:

  • !GracefulDiscoSec corresponds to the maximum duration left for apps to be gracefully closed, knowing that PageLeave leaves the session a maximum of 20 seconds before logging it out.
  • The delay between WM_CLOSE and WM_QUIT is 3 seconds by default, and can be changed using PowerTag !GracefulDiscoQuitIntervalSec.