[sane-devel] SANE_Device issue

Ralph Little skelband at gmail.com
Thu May 29 05:23:47 BST 2025


Hi Devs,
I'm looking at an issue that affects xsane that I have had a number of
complaints about.

When xsane starts, it calls sane_get_devices() regardless of whether or not
a specific device was specified by the user. The main issue is the long
delay before xsane starts up while device polling is happening, which *can*
be annoying long.

On the face of it, this seems pointless if we already know which device the
user wants to use. However, in various places, xsane uses the descriptive
information for that device that we get in the SANE_Device structure which
can only be got from sane_get_devices() This seems like a gaping hole in
the protocol that the information about a specific device cannot be
determined without searching for all devices.

Does anyone have any ideas how we might get around this without breaking
backwards compatibility in the SANE API and have I missed some official
method whereby this information might be obtained?

Cheers,
Ralph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20250528/f0884200/attachment.htm>


More information about the sane-devel mailing list