Hi, On Tue, Aug 19, 2003 at 02:39:37PM +0200, Gerhard Jaeger wrote: > I remember, that there once was a discussion 'bout saving backend specific > data somewhere, but I could not find this discussion anymore. > My problem: > I'd like to save calibration data from the devices locally, so that it is no > longer necessary to redo calibration over and over again (at least for > raw calibration this is always a time-intensive procedure). > One solution is to keep this data only until the backend has been closed, > this will be my fall-back solution, but the better one will be to save the > calibration data on on the disc... > Any comments?
I'd use ~/.sane/some_unique_name, or, if you need more than one file, ~/.sane/backend_name/some_name. Better don't use /tmp, at least if you can't make sure that someone else can do nasty things with your files (e.g. symlink attack). Further more in /tmp, the file might be deleted on the next boot. Using ~/.sane means that the calibration is user-specific but I think that's better than causing security nightmares in /tmp. Bye, Henning
