On Mon 27 Jul 2020 at 14:40:00 +0200, Nicolas George wrote: > Georgi Naplatanov (12020-07-27): > > https://linux.die.net/man/1/scanimage > > > > "The -d or --device-name options must be followed by a SANE device-name > > like 'epson:/dev/sg0' or 'hp:/dev/usbscanner0'. A (partial) list of > > available devices can be obtained with the --list-devices option (see > > below). If no device-name is specified explicitly, scanimage reads a > > device-name from the environment variable SANE_DEFAULT_DEVICE. If this > > variable is not set, scanimage will attempt to open the first available > > device. " > > Thanks. > > Unfortunately, it does not work: for GUI tools, this environment > variable pre-selects the device in the device selection dialog, but it > does not make it appear if it is not detected (?!???@!%@?!!!?). > > Also, it works for only one scanner.
When xsane is run it searches for devices. If the deskjet_3050a is the only one found, that is the one you will get. If there is more than one, it presents you with choice. -- Brian.