It's a good idea to automate these steps indeed? But, do you warn the user about this? Maybe there should be some kind of dialog to inform the user. Something like: "Ooops, something wrong happened", "Do you want to restore this file (last modification is xx time old)?", "Restore", "Use new file", "Quit GTG".
Bertrand 2012/4/1 Izidor Matušov <[email protected]>: > Hi, > > I've pushed an interesting commit to the trunk. It recovers your XML file > from backup by default. An example: > > * For some unspecified reason, your 'projects.xml' fails to load. E.g. you > play with a bad written test which modifies your 'projects.xml'. However, > you don't encounter it immediately, because the file is loaded only on > bootup. > * The next morning you launch GTG but it doesn't start. > * You open a terminal to manually launch GTG. > * There is an error about XML. > * You google that error and if you get lucky you look for backups (if you > know where GTG stores data) > * You try to play with backups and find the latest usable one. > > As you can see, those are so many steps to solve a problem. Imagine a > corporate worker how she turns on her computer but GTG won't start and she > don't know what to do. Calling tech support and spend another hour by > solving that. Instead of that, GTG takes care of those steps automagically. > Restoring backups would mean to lose few steps what is better than spending > few hours and losing them anyway. > > If you have any objections, feel free to raise them :-) > > Izidor > > _______________________________________________ > Mailing list: https://launchpad.net/~gtg-contributors > Post to : [email protected] > Unsubscribe : https://launchpad.net/~gtg-contributors > More help : https://help.launchpad.net/ListHelp -- Bertrand Rousseau _______________________________________________ Mailing list: https://launchpad.net/~gtg-contributors Post to : [email protected] Unsubscribe : https://launchpad.net/~gtg-contributors More help : https://help.launchpad.net/ListHelp

