This PR allows to define a behavior after the user logs in:
Immediate: The greeter is killed on start_session (Default behavior)
Resettable: The greeter can use the idle and reset signals. (Same as previous set_resettable)
Graceful: The greeter is allowed to terminate gracefully by itself. (NEW ONE!)
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
lightdm_greeter_set_finish_behavior method to set the finish behavior.
LightDMGreeterFinishBehavior enum to choose the behavior.
greeter-grace-timeout configuration option.
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.
Description
This PR allows to define a behavior after the user logs in:
start_session
(Default behavior)idle
andreset
signals. (Same as previousset_resettable
)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
lightdm_greeter_set_finish_behavior
method to set the finish behavior.LightDMGreeterFinishBehavior
enum to choose the behavior.greeter-grace-timeout
configuration option.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.