Record lifecycle intent and execute it only after application cleanup. More...
Public Member Functions | |
| SystemLifecycleAction | requested_action (self) |
| Return the most recent deferred lifecycle request. | |
| None | request_restart_ui (self) |
| Record a UI restart request without replacing the process yet. | |
| None | request_poweroff (self) |
| Record a host poweroff request without touching the OS yet. | |
| None | clear (self) |
| Discard any pending lifecycle action. | |
| bool | execute_requested_action (self) |
| Execute the deferred action after application-owned resources close. | |
Record lifecycle intent and execute it only after application cleanup.
| bool system.system_lifecycle_controller.SystemLifecycleController.execute_requested_action | ( | self | ) |
Execute the deferred action after application-owned resources close.
Returns True when an action was dispatched. A restart replaces the current process and therefore does not normally return.