feat(gui-client): gracefully exit GUI on graceful IPC shutdown#8035
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
@jamilbk Instead of a silent exit, I could also display a toast notification similar to what we say with "Firezone connected". Something like "Firezone disconnected, please restart the client to gain access to your resources.". Thoughts? It may be surprising to users that the GUI disappears silently, especially because it only lives in the tray menu. |
Yeah probably a good idea. "Firezone client detected IPC service shutdown. Quitting..." or similar. |
412f75d to
ad51310
Compare
Just tested and this also fixes the above linked issue. |

When the IPC service gets terminated gracefully, the user must have initiated some kind of action, be it an upgrade or an explicit "Stop the service". In that case, there is no point in displaying an alert with an info / error message as the user already knows that they are stopping Firezone. In order to not fatigue the user with alerts, we exit the GUI with a toast notification when the IPC service shuts down gracefully. Toast notifications do not grab the users attention, allowing them to continue what they are doing while still being notified that their Firezone client is now disconnected.
Fixes: #6232.