Selaa lähdekoodia

Detect usb scanner

cinaeco 3 viikkoa sitten
vanhempi
commit
96abf95c30
2 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  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