canonical / lightdm

Display Manager
GNU General Public License v3.0
843 stars 139 forks source link

Add finish behavior #369

Open JezerM opened 4 months ago

JezerM commented 4 months ago

Description

This PR allows to define a behavior after the user logs in:

Essentially, this replaces the old set_resettable with more options to choose from.

greeter-grace-timeout configuration option was added to set the timeout to kill the greeter if using the Graceful behavior.

Added

Why

Some greeters may need to perform some tasks before finishing, to terminate gracefully, which may not be performed before a successful start_session. The current behavior only allowed to either kill it now or let it be forever.

In my own web based greeters, some stuff like localStorage are only saved on disk if the browser (greeter) is closed normally (JezerM/web-greeter#68), so the current behavior does not allow for a successful save of this data.