Xubuntu / lightdm-gtk-greeter

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

Cancellable autologin #161

Open pezcurrel opened 3 months ago

pezcurrel commented 3 months ago

Hello, i have implemented cancellable autologin: when autologin is set, a button gets shown on the bottom of the login window, with a "Cancel Automatic Login [F5]" text label; when the button gets activated or the F5 key gets pressed on the keyboard, the button disappears and autologin gets cancelled.

This solves #67 and maybe #158

pezcurrel commented 3 months ago

Just one note: line 3128 ...

gtk_widget_grab_focus (GTK_WIDGET (cancel_autologin_button));

... is useless, i was experimenting and forgot it there, sorry.