Posted Apr 4, 2009 10:32 UTC (Sat) by bockman (guest, #3650)
Parent article: Shortening the rope
It has been a while since I wrote some program directly interfacing Xlib, but IIRC loosing the
connection with the X server does not directly crashes the application. Instead, the Xlib error
handling function if called - if the application had the sense to define it. This should be enough to
have - say - word processor saving a backup copy of the current document before quitting, thus
reducing the impact of CTRL-ALT-TAB.
I wonder if any application actually does this.
Posted Apr 6, 2009 21:43 UTC (Mon) by iabervon (subscriber, #722)
[Link]
Firefox saves stuff (well, I think it saves it during normal operation rather than on exit), and emacs treats it as a "user disconnected" event and saves recovery files.
I think the real issue is not so much losing work as losing state: you're editing a particular set of documents, talking to a particular set of people, have logged into some particular web sites, and you've got the windows arranged so that you can see the windows you want at the same time. Killing the server and coming right back puts you back in a neutral state. Your word processor may save the document you were editing, but it almost certainly won't remember where your cursor was.