GNOME Bugzilla – Bug 61443
RFE: AutoSave timed backups of unsaved diagrams
Last modified: 2004-12-22 21:47:04 UTC
RFE 1. On the crash, I left it running for 48 hr when I was called unexpectedly away from the office, and upon returning, as I went to use it, it cored. Implies a memory leak in some event loop. No big deal. I should have saved before walking away. But then, I thought, programs are supposed to protect their users; why _not_ have the program commit a well-known named temporary file (.dia-backup.N) for open drawings every N minutes (configurable), and remove it/them when a Save, a SaveAs, or an Exit discarding changes is taken. Upon starting, check for that well known name (possibly suffixed 1 through M if multiple drawings were open at crash), and left behind. Word Perfect 5.1 (geez - ten years ago) was smart enough to protect its users. ... and if found offer to re-cover by opening them; if declined, discard them.
Mass reassign of bugs to dia-maint@bugzilla.gnome.org.
I have added autosave functionality in CVS. Currently, it saves as <filename>.backup in the current directory. I'm not sure what to do about restore. I certainly can't scan all directories. I could scan the current one, or have a list of directories with autosave files.
Abiword has a feature that will save a backup file just before a crash (it works by doing a save at the last minute instead of calling something like bug buddy). As for restore, you would need to add some sort of a checkvalue to Dia that indicated that Dia had closed successfully/exited cleanly on last use. is this AutoSave feature Linux specific and is it in the release version of 0.91?
Not Linux-specific, it's in 0.91.

Having it be a last-minute save would make it more OS-specific.

long time fixed. 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu> * app/autosave.c: * app/app_procs.c (app_init): Autosave support. No automatic restore yet.