Is there a way to close a GUI application in friendly "please quit yourself now" way, without graphical access to the applications window?
For example, if Gnome/X display crashes to black, I'd like to switch to tty2 and close applications like firefox in a way which lets them save their config etc. At best without further user queries.