|
|
@@ -2,8 +2,7 @@
|
|
|
|
|
|
export GDK_BACKEND=x11
|
|
|
# Specify device to avoid startup delays and scanning slowness.
|
|
|
-# scanimage --list-devices
|
|
|
-export SANE_DEFAULT_DEVICE='epsonds:libusb:001:005'
|
|
|
+export SANE_DEFAULT_DEVICE=$(scanimage --formatted-device-list %d%n | grep libusb)
|
|
|
|
|
|
# See if file exists, add a number to name if needed.
|
|
|
function check_filename {
|