Bug 461095 - Kscreenlocker checks for auth and show "Unlock" button twice, when configured howdy facial recognition authentication
Summary: Kscreenlocker checks for auth and show "Unlock" button twice, when configured...
Status: REPORTED
Alias: None
Product: kscreenlocker
Classification: Plasma
Component: general (show other bugs)
Version: 5.26.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-28 05:03 UTC by Murz
Modified: 2022-10-28 19:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Murz 2022-10-28 05:03:15 UTC
SUMMARY
***
I use https://github.com/boltgolt/howdy for facial recognition authentication. It works well on login using SDDM and checks my face once.

Also, it works for Kscreenlocker too, but Kscreenlocker checks my face twice! So I see a password input prompt, the facial recognition process starts working (IR camera starts working), it successfully recognizes me and the "password input prompt" slides to the left and changes to the "Unlock" button, that's cool!

But immediately after this - Kscreenlocker starts the facial recognition process again, and after couple of seconds - that "Unlock" button slides to the left again, and changes to the new "Unlock" button screen!

Why that happens and how to make this happen only one time?

For any other auth processes (terminal login, sudo, etc) - Linux uses the facial recognition process (us IR camera) only once, the problem is only with Kscreenlocker.

***


STEPS TO REPRODUCE
1. Install howdy and configure the face recognition.
2. Add howdy to auth process via something like putting into `/etc/pam.d/common-auth` the line:
```
auth    [success=2 default=ignore]        pam_python.so /lib/security/howdy/pam.py
```
3. Login to the KDE session using face recognition and see that the IR camera uses only once.
4. Lock the screen.
5. Try to unlock the screen.

OBSERVED RESULT
You will see two changes of the login screen: from the password prompt to unlock button, and from the first unlock button, to the second one (that uses the IR camera for face recognition the second time), which unnecessarily spends unlocking time!

EXPECTED RESULT
The "unlock button" switch and the "face recognition" call should happen only one time.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 22.10
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.19.0-23-generic (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz
Memory: 30.9 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: HP
Product Name: HP EliteBook 850 G8 Notebook PC

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-10-28 19:48:35 UTC
Be aware that KDE hasn't officially supported Howdy yet. So while it might work, proper integration isn't guaranteed.