move every live default to /run/hypr-stream, and resolve the slices' contract gaps
Slice A renamed the runtime directory in the module, but the old path was still live in the code and checks it does not own, so the VM gates pointed at a directory the module no longer creates. This moves the 21 remaining live occurrences (client/server defaults, the unit tests that pin them, all three VM checks, the diagnostics script, both READMEs) and deliberately leaves the three mentions that are history rather than configuration: the plan's problem statement, module.nix's note about the previous name, and cli.py's explanation for spelling its default out. Also here: docs/CONTRACT-sessions.md is now v2 with every gap the four slices reported resolved as a decision (Monitor.id, stable_id, pid -1, Event.data, mark(), the quarantine argv type, the corrected wlr XML path, and the state dir/frame socket rows), and docs/CONTRACT.md is v2 because its documented socket default moved -- wire format unchanged. Two comments that stated the old, wrong diagnosis (a 'misnamed' IPC socket) now state the measured one: the event socket did not fit in sun_path.
This commit is contained in:
1 parent
d45219994e
commit
e8b3855a05
15 files changed
+102
-35
No files matched your search
+8
-4
@@ -93,10 +93,14 @@ Two notes for anyone editing that file:
|
||||
Hyprland draws the error *across the screen*, which lands in the recording.
|
||||
Always check an edit with `Hyprland --verify-config --config <file>` — it does
|
||||
not need a display, so it costs seconds instead of a rebuild.
|
||||
- `hyprctl` **cannot connect** to this session: the compositor names its IPC
|
||||
socket `.socket.so`/`.socket.s` instead of `.socket.sock`, so nothing using the
|
||||
documented path works. Do not plan on `hyprctl` for window control — measure
|
||||
what you need from the frames instead.
|
||||
- `hyprctl` **works** against this session; an older note here claimed the
|
||||
compositor misnames its IPC socket, which was wrong. The real defect was path
|
||||
length: `$XDG_RUNTIME_DIR` was `/run/hyprland-headless-stream` (29 chars) and
|
||||
the event socket `hypr/<signature>/.socket2.sock` did not fit in `sun_path`, so
|
||||
the compositor logged `ERR ]: Socket2 path is too long. (2) IPC will not work.`
|
||||
while the request socket kept answering — which is why the wrong diagnosis
|
||||
survived. The runtime directory is now `/run/hypr-stream`, and `nix/module.nix`
|
||||
asserts it stays ≤ 25 characters.
|
||||
|
||||
### Posting the result to a chat
|
||||
|
||||
|
||||
@@ -50,8 +50,8 @@ sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent.parent / "src"))
|
||||
|
||||
from hhstream import protocol # noqa: E402 (path set above)
|
||||
|
||||
DEFAULT_SOCKET = "/run/hyprland-headless-stream/stream.sock"
|
||||
DEFAULT_RUNTIME_DIR = "/run/hyprland-headless-stream"
|
||||
DEFAULT_SOCKET = "/run/hypr-stream/stream.sock"
|
||||
DEFAULT_RUNTIME_DIR = "/run/hypr-stream"
|
||||
|
||||
|
||||
def log(message: str) -> None:
|
||||
|
||||
Reference in new issue
Block a user