Explorar o código

Detect usb scanner

cinaeco hai 3 semanas
pai
achega
96abf95c30
Modificáronse 2 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      scan-dialog
  2. 0 0
      scanner-al.icm

+ 1 - 2
scan-dialog

@@ -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 {

+ 0 - 0
scanner-al.icm