hugin-devs team mailing list archive
-
hugin-devs team
-
Mailing list archive
-
Message #00462
Re: [Bug 679917] Re: Backup copy of project.
On Tue, Dec 07, 2010 at 12:47:47AM -0000, Yuv wrote:
> Share the patch please. Can't promise (lot of things on my todo list),
> but if it still does not have a preference setting I can contribute
> that.
>
> Place = storage space in the file system? how about taking the time when
> the Hugin instance is started, make it into an epoch, and save it to
> something like /etc/${epoch}.pto ?
/etc is out of the question.
$HOME/.hugin-autosave.$$.pto
($$ = the PID of the running process)
would work fine for me. The question is: who cleans this up?
How about:
$HOME/.hugin-autosave.nn.pto
where nn is a number from 1 to ten. This way you have 10 backups of at
most ten running hugin processes. You don't have to delete them if you
quit. (Sometimes having a backup from a previous session is useful!)
Thus at startup, you'd
rename $HOME/.hugin-autosave.9.pto $HOME/.hugin-autosave.10.pto
rename $HOME/.hugin-autosave.8.pto $HOME/.hugin-autosave.9.pto
rename $HOME/.hugin-autosave.7.pto $HOME/.hugin-autosave.8.pto
rename $HOME/.hugin-autosave.6.pto $HOME/.hugin-autosave.7.pto
rename $HOME/.hugin-autosave.5.pto $HOME/.hugin-autosave.6.pto
etc.
and then start saving in
$HOME/.hugin-autosave.1.pto
but we'd need to keep the filedescriptor to this file so that we'd
keep on saving to the right file even as our autosave file is moved to
a new name by a new instance....
Rogier.
--
** R.E.Wolff@xxxxxxxxxxxx ** http://www.BitWizard.nl/ ** +31-15-2600998 **
** Delftechpark 26 2628 XH Delft, The Netherlands. KVK: 27239233 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement.
Does it sit on the couch all day? Is it unemployed? Please be specific!
Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ
--
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...).
References