← Back to team overview

hugin-devs team mailing list archive

[Bug 679917] Re: Backup copy of project.

 

Thomas, you have to learn to distinguish between a work-in-progress
patch and a final "suggested fix" patch.

Yes, I'm sure that on Unix you can keep an open filedescriptor to a file
and rename it. The common way to prevent temporary files from cluttering
the filesystem is to open the temporary file, and then delete it. Now
when the program exits (clean or otherwise) it is the OS'es
responsibility to clean up the file now that there are no longer any
references to it.

Yes, now that we're talking autosaves, we can think about backups too.
Maybe we can solve two issues in one go.

Yes, my patch doesn't yet implement any of my suggested backup ideas.
The patch proves that making hugin do an autosave can be done in less
than 20 lines-of-code. Of course before the patch goes final, the
interval will be increased. But we're not that far yet. So, it provides
good debugging opportunities if it triggers the autosave every 10
seconds, as opposed to every 10 minutes.

If we've decided that history/backup might be useful, and if the
autosave "fits in" with the naming convention, then maybe we can unify
these. So whereas "$HOME/.hugin-autosave" is a Unix-only filename for
the auto-save, if we'd use the name of the project we'd immediately have
a valid name on whatever OS this runs on. "untitled-autosave.pto" should
work on most OSes too.

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/679917

Title:
  Backup copy of project.

Status in Hugin - Panorama Tools GUI:
  Confirmed

Bug description:
  Hugin just crashed on me. Pre 0.7.0 this happened so often that I knew I had to save often, or risk losing my work. 

So far this is the first since I went to 0.7.0. Now 0.8.0 crashed on me.... However I'm most pissed that a pto file got saved to run "nona", but this gets (I think) cleaned up after running nona. So now I'm left with a project file with hours of work missing. 

PLEASE write a backup pto file where I can find it, or mention "this project had unsaved changes when hugin crashed, load the backup file?" when I start it. (then I don't need to know where the backup is stored...).