Repository navigation
Components 0.9.1: remember the last session action
Remembers the native session screen's last chosen action on each machine.
Reopening focuses that action and stays idle. A new click or key activation is required to start its full countdown. The choice is remembered even when the countdown is cancelled. Direct --select shortcuts also update the preference. No pending request or timer is restored.
The optional user-local preference is stored at $XDG_STATE_HOME/desktop-session/last-selection.json, normally ~/.local/state/desktop-session/last-selection.json. Missing, malformed or unreadable state falls back to Lock; unavailable storage does not block the menu. It is separate from managed configuration and consumer deployment.
Only components/desktop/bin/desktop-suspend changes among the 48 payloads from 0.9.0; the other 47 payload bytes and modes remain identical. The existing screen selection, power/lock/Away ownership, normal authorization/inhibitors and legacy routes retain their behavior. Complete reference qualification remains 0.4.1 with the Away helper/unit selected independently from 0.5.0.
Local validation: 217 source tests, 30 private nested-Niri GUI checks with inert endpoints, and 1,332 browser checks for each normal and portable build. The native regression chose Restart, cancelled, reopened with Restart focused and no timer, then required a fresh Enter to begin its countdown. Preference failure and malformed-state cases are covered without acting on the user's desktop.
Source: 6ffbdb51ea5dac644c6a434288aedf884d3ac98e.