I replaced computer, and installed Debian 10 amd64 with LXDE.
Previous had Debian 9 i386
I wanted to use my scanner, CanoScan LiDE 300, with xsane.
It is on the list of supported devices.
But not on the version of libsane available on package manager.
So I downloaded the original sources and compiled it.
Now I can use the scanner.
But only as root.
From what I remembered user has to be part of scanner group.
But already is.
https://wiki.debian.org/Scanner#Permissions
says that it is not that simple any more and that I permission for usb device usage.
And points to
https://bugs.debian.org/cgi-bin/bugrepo ... =918358#12
which tells that this is solved by adding
ENV{libsane_matched}=="yes", RUN+="/bin/setfacl -m g:scanner:rw $env{DEVNAME}"
to /etc/udev/rules.d/65-libsane.rules.
Actually, I found out that the actual location of the file is /lib/udev/rules.d/60-libsane.rules.
Anyway, adding such line does not help.
I don't know how to continue.
Edited to add: I found out that /bin/setfacl is wrong. /usr/bin/setfacl must be used instead because that's where it is.
But changing this doesn't help.