RogueScholar/fingerprint-gui

Semi working build. Polkit authentication agent missing?

AreYouLoco opened this issue · 3 comments

Describe the bug
I have added:
auth sufficient pam_fingerprint-gui.so to /etc/pam.d/su
but pam_fingerprint-gui.so is non existant on my system.

To Reproduce
I've successfully build qt5 tree on debian bullseye (testing) and fingerprint-gui is enrolling fingerprints and verifying it. But I cannot make it work with lightdm login and sudo/su.

Expected behavior
Fingerprint reader would activate during login and su/sudo requests.

Screenshots
Screenshot from 2020-12-19 12-01-02
Screenshot from 2020-12-19 12-01-08
Screenshot from 2020-12-19 12-01-21

Desktop (please complete the following information):

  • OS: Debian Bullseye (testing)
  • QT5
  • Version: debian-testing:sc:20200712
  • Hardware: Thinkpad T420, 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor

Additional context
$ /usr/local/lib/fingerprint-gui/fingerprint-polkit-agent -d
New PolkitAgentListener 0x558985c6ba00
Adding new listener PolkitQt1::Agent::Listener(0x7ffe64566c80) for 0x558985c6ba00

** (process:10642): WARNING **: 12:04:41.724: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subject
"Cannot register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subject"
Destroying listener
Removing listener PolkitQt1::Agent::Listener(0x7ffe64566c80)

Any suggestions?

Ok I compiled again and it seems like libpam_fingerprint-gui.so is in /usr/local/lib/security/libpam_fingerprint-gui.so. Why doesn't it work? Wrong directory?

I've added udev rules from here https://aur.archlinux.org/fingerprint-gui.git and removed temporarily polkit-gnome-authentication-agent-1.desktop and polkit-mate-authentication-agent-1.desktop from /etc/xdg/autostart/ and rebooted but still no luck...

EDIT:
Removing files from /etc/xdg/autostart lets me start:
$ /usr/local/lib/fingerprint-gui/fingerprint-polkit-agent -d
New PolkitAgentListener 0x55f16640a800
Adding new listener PolkitQt1::Agent::Listener(0x7ffdd45b0ef0) for 0x55f16640a800

SOLVED! I managed to make it work with fprintd. Closing.