I would expect it to close the application.
We might want this to be configurable? And/or (on first close/minimise) pop up a message explaining what's happened?
This is standard behaviour for a lot of apps, but I agree it could be made configurable.
I already have an IPC for configuration of the electron main process from the renderer, so just need to add persistence and then this'll be painless
For OS X the normal behaviour is closing the window, but keeping the app running. Which is what is does now. :)
A system tray is also not guaranteed to exist on Linux. It doesn't on gnome now. Riot should automatically detect this case and Do The Right Thingâ„¢.
I have this problem in Gnome. No tray icon so I cannot close Riot (I have to kill the process, or start it from the terminal and use ctrl-c to exit).
Also, closing with Menu -> Close does not force close Riot on gnome/fedora. And that's a default behavior in MacOS as I know... There has to be a way to force close a UI application without killing the process on cli. That's a bit messy and should be fixed
This is configurable:

ack. Thank you!