Attach a desktop session from another machine #5
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?
Triage: enhancement, needs-triage. Depends on: #4 (Rex, which isn't released for Linux yet). Related: #3.
Want
A fjordxy desktop is a session that lives on the machine it was made on, and another machine can attach it. Open fjordxy on the laptop, attach fox's
buildsession, and get its terminals and apps on a laptop desktop.This settles the terminology question in #4. A desktop is a session, one to one: it can be opened from elsewhere, not just looked at on the machine it lives on. Everything on it, terminal or GUI app, is a block.
Terminal blocks: attached live through Rex
This is what Rex is built for (from its docs; not yet verified, as there's no Linux release):
rex.host{ label = "fox", endpoints = {...} }and reached withrex -S fox ...orrex.server("fox")in Lua.programs.fjordxy.remote.tailscale), and Rex has atailscale_status_changedevent.GUI blocks: the hard part
A Wayland app window belongs to the compositor it's connected to. A Firefox window open on fox can't move to the laptop's niri. The options:
Leaning towards: attach terminal blocks live, and rebuild GUI blocks from a description of what they were showing. That makes #3's data collection (the tabs in each browser window, each window's app) the input for rebuilding a session, not only something to display.
Biggest open question (for Superlogical)
Rex blocks have a kind, called a "creator". Today the only kind is
com.superlogical.terminal, but the API is built around block kinds: thecreator_changedevent fires when "the kinds of block the session can create have changed".Can third parties register their own block kinds? If so, fjordxy could register a GUI-app block, and a whole desktop, apps included, would live in one Rex session that any client can list, attach and rebuild. If not, fjordxy needs its own record of each session's GUI blocks, kept next to Rex's.
Other open questions
principal), and both need understanding before this is turned on.