exiting from gnome

Derek Atkins warlord at MIT.EDU
Mon Mar 10 11:29:53 CST 2003

Well, another option that we discussed on #gnucash last night
was an autosave file _to a different filename_ -- ALA emacs'
autosave.  This file gets auto-written periodically as you make
changes to the data.  If you've made no changes, then nothing gets
written.  When you "save", the autosave file gets removed.

When you run gnucash, if it finds such an autosave file it would ask
the user "load from autosave?" -- similarly to what emacs does.

This is probably slightly easier than reading log files, and will
handle data _other_ that just transactional changes....  However
we would need to be careful about this -- it should only happen for
_some_ backends (i.e. only the File Backend).  Perhaps that means
we need an extension to the Backend API to add an 'autosave()' api?

If someone who really wants autosave wants to donate code...........


Nigel Titley <nigel at packetexchange.net> writes:

> On Mon, 2003-03-10 at 13:39, Greg Troxel wrote:
> >   Nope.  Just like there is no way for gnucash to stop you from
> >   unplugging your computer or turning it off.  Exiting gnome is
> >   outside the purvue of gnucash.  By the time gnucash gets told
> >   that gnome is going away, you have no more UI.
> One way out of this would be for gnucash to gain the ability to process
> its own log files on startup. If there existed log files which were more
> recent than the save date on the main data file, gnucash could offer to
> roll forward the missing transactions.
> I appreciate this needs some code writing... but it does address
> concerns raised several times on this list about the ability to recover
> lost work by applying the log files. I don't feel sufficiently at home
> with the gnucash code to offer to do this yet I'm afraid. Some time in
> the future possibly.
> Nigel

       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available

More information about the gnucash-devel mailing list