[LightDM] Logging out of autologin
Robert Ancell
robert.ancell at gmail.com
Wed Dec 17 13:03:49 PST 2014
On Thu Dec 18 2014 at 07:58:40 <lightdm.bobd at dfgh.net> wrote:
> On 12/09/2014 10:35 PM, Robert Heller - heller at deepsoft.com wrote:
>
> > Set the auto login timeout to 0 (or maybe 1 -- sometimes 0 is used to
> indicate
> > infinity).
> >
>
> Does the autologin timeout feature require coordination with the greeter
> itself?
>
Yes, the daemon informs the greeter that an autologin timer should be used
and provides a signal that the greeter can connect to that times out after
this. It is recommended that greeters do their own timer though so they can
indicate to the user the remaining time and cancel it on user interaction.
For liblightdm-gobject:
lightdm_greeter_get_autologin_timeout_hint () gets the timeout in seconds.
lightdm_greeter_authenticate_autologin () should be called after this many
seconds if not cancelled.
You can connect to the "autologin-timer-expired" signal if you want to use
the built in one and cancel it with lightdm_greeter_cancel_autologin ().
For liblightdm-qt:
QLightDM::Greeter::autologinTimeoutHint() gets the timeout.
autologinTimerExpired() signal is emitted after this many seconds.
I notice the cancelAutologin() was never added - I'll add that now.
--Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/lightdm/attachments/20141217/243c31b7/attachment.html>
More information about the LightDM
mailing list