Allow forcing scanner option values through environment variables
Users could force option values through environment variables.
It would help for debugging or to workaround issues.
Example: B&W and Lineart are not yet supported in Libinsane+WIA2, Libinsane+TWAIN and so Paperwork provides no option to set it. However it works fine with Libinsane+Sane. Letting users force the option mode
to Lineart
would let them scan in B&W for the time being.
export LIBINSANE_FORCE_OPTS=mode:Lineart,resolution=100
Edited by Jerome Flesch