export SANE_DEBUG_GENESYS=255 export SANE_DEBUG_GENESYS_GL646=255 export LD_PRELOAD=backend/.libs/libsane-genesys.so export SANE_CONFIG_DIR=backend frontend/.libs/scanimage -d genesys 2>genesys-scan.log >genesys-scan.pnm