ソースを参照

Detect usb scanner

cinaeco 3 週間 前
コミット
96abf95c30
2 ファイル変更1 行追加2 行削除
  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