After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 61443 - RFE: AutoSave timed backups of unsaved diagrams
RFE: AutoSave timed backups of unsaved diagrams
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
0.88.x
Other Linux
: Normal enhancement
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2001-09-30 20:46 UTC by R P Herrold
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description R P Herrold 2001-09-30 20:46:22 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.
Comment 1 James Henstridge 2002-05-02 01:26:59 UTC
Mass reassign of bugs to dia-maint@bugzilla.gnome.org.
Comment 2 Lars Clausen 2002-07-26 00:26:48 UTC
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.
Comment 3 Alan Horkan 2003-03-29 19:42:50 UTC
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?
Comment 4 Lars Clausen 2003-03-31 16:11:21 UTC
Not Linux-specific, it's in 0.91.&#013;&#010;&#013;&#010;Having it be a last-minute save would make it more OS-specific.&#013;&#010;
Comment 5 Hans Breuer 2003-12-14 11:46:36 UTC
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.