<br><br><div class="gmail_quote">On Thu Dec 18 2014 at 07:58:40 <<a href="mailto:lightdm.bobd@dfgh.net">lightdm.bobd@dfgh.net</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 12/09/2014 10:35 PM, Robert Heller - <a href="mailto:heller@deepsoft.com" target="_blank">heller@deepsoft.com</a> wrote:<br>
<br>
> Set the auto login timeout to 0 (or maybe 1 -- sometimes 0 is used to indicate<br>
> infinity).<br>
><br>
<br>
Does the autologin timeout feature require coordination with the greeter<br>
itself?<br></blockquote><div><br></div><div>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.</div><div><br></div><div>For liblightdm-gobject:</div><div>lightdm_greeter_get_autologin_timeout_hint () gets the timeout in seconds.</div><div>lightdm_greeter_authenticate_autologin () should be called after this many seconds if not cancelled.<br></div><div>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 ().</div><div><br></div><div>For liblightdm-qt:</div><div>QLightDM::Greeter::autologinTimeoutHint() gets the timeout.</div><div>autologinTimerExpired() signal is emitted after this many seconds.<br></div><div>I notice the cancelAutologin() was never added - I'll add that now.</div><div><br></div><div>--Robert</div></div>