79357281

Date: 2025-01-15 07:00:14
Score: 1
Natty:
Report link

I came across a solution and wanted to let others find this if they ever needed. Electron has a powerMonitor api which allows you to handle this and in my case it was the below code that fixed it for me

Electron.PowerMonitor.OnShutdown += () => 
{ 
    Log.Logger.Debug("Assist app is shutting down.., exiting app !!"); 
    Electron.App.Exit();
};
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Abel Abraham