xsane may not remember resolution values in some cases.
I have been using the Epson Perfection3200 Photo scanner for years and I use xsane to operate it. (also mentioned in issue #19)
For one or two years, however, I have been annoyed that the resolution is no longer saved. Every time I start the program, the resolution is set to 64, the first value in the list, no matter what was set on the last start.
I have now taken a closer look at the problem:
This scanner uses separate settings for the resolution in x and y. And here seemed to be the problem. The settings are reliably saved in the device settings when leaving the program, but are not read in again when starting the program.
The problem is int 'xsane-device-preferences.c'. The code that handles this situation is simply missing.
I have inserted the missing lines and include a patch file here, based on the current master. I hope that this is acceptable.
The code was tested for the Epson Perfection3200 Photo (x and y resolution values) and for the scanner of the Epson XP-600 printer, which only presents one resolution setting.
Translated with www.DeepL.com/Translator (free version)