Restore windows, tabs and panes after a restart #35
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
wayfinder:map
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#36 Pane secret and OSC 7577 resume commands
jeff/harrier
Reference
jeff/harrier#35
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When it starts, harrier reopens the windows, tabs and panes it had when it last ran. The glossary calls this Restore: not "session restore", because a session is one pane's.
This is the foundation for program resume (OSC 7577). A Resume command is one more thing a restored pane carries, and that work is blocked on this.
When
restoresetting:never | after_crash | always, defaulting toafter_crash.after_crashrestores only when the last primary did not close cleanly. The state file holdsclean = falsewhile a primary runs. A close the user caused (a binding, a close button, the last program exiting) writesclean = trueas the very last thing it does. A crash, a kill, an update replacing the binary, or windows closed by the compositor at logout leavefalsebehind.harrier, D-Bus activation) is replaced by the restore when there is anything to restore.-e,--tab, Launch Command, a profile) gets the restore and the request. The request's window opens last, so it has the focus.What is saved
When it is written
$XDG_STATE_HOME/harrier/. Windows:%LOCALAPPDATA%\harrier\.Panes that cannot come back as they were
Terms: see
GLOSSARY.md(Restore, Resume command).