Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.