Use a configuration file (if it exists) to allow the user to set preferred defaults, including TMP_DIR. Also move the initalization of SOURCE above the inclusion of the configuration.
Use a configuration file (if it exists) to allow the user to set preferred defaults, including TMP_DIR. Also move the initalization of SOURCE above the inclusion of the configuration.

rocketraman/sane-scan-pdf