Xubuntu / lightdm-gtk-greeter

A GTK greeter for LightDM
GNU General Public License v3.0
150 stars 30 forks source link

Add config option to auto-start session with PAM #127

Open smanilov opened 2 years ago

smanilov commented 2 years ago

[This PR continues #107. All changes are now in a single commit, for easier review and merge.]

This allows the user to choose whether to login automatically once PAM succeeds for the selected user.

On one hand, automatic login makes using fingerprint login more pleasant -- the user does not need to also press the "Log In" button, once the fingerprint is recognized.

On the other hand, using different PAM methods, autologin might be undesirable, as scrolling through the list of users might login a selected user when it is undesired.

For this reason, having this functionality as a user-configurable setting makes sense.

qwertychouskie commented 1 year ago

Is it possible to split this into two settings, one for fingerprint logins and one for all other types of logins? Then set the default for normal logins to false and the default for fingerprint logins to true.

smanilov commented 1 year ago

Perhaps it could be possible, but one needs to look into whether the PAM API allows any disambiguation between fingerprint login and other logins.

At the level of this change, this information is not directly available.

What other types of logins do you have in mind?

ddulic commented 1 year ago

Seeing the same issue with using a Yubikey. Looking forward to this being implemented.