Le 12/06/2017 à 16:03, Alexandre Detiste a écrit :
Package: libccid
Version: 1.4.27-1
Severity: wishlist
Hi,
Hello,
I switched from a libacsccid1 to a libccid card reader
and lost some time trying to make it work,
manually editing the XML with USB id's and such.
Then I realized all I needed was to restart pcscd.
Would it be ok to try-restart pcscd (if it's installed)
from postinst, only on a new install of libccid ?
I could restart pcscd. But that would have bad side effect.
Imagine you are using your smart card using driver A when you install driver B.
If pcscd is restarted automatically then your current connection using driver A
would be interrupted.
pcscd should be be stopped when no application is using the PC/SC API and
started automatically when needed.
https://ludovicrousseau.blogspot.fr/2011/11/pcscd-auto-start-using-systemd.html
That should be enough to rescan the driver directory.
I do not plan to implement a pcscd restart as suggested, unless you have a
better argument.
Regards,
--
Dr. Ludovic Rousseau