fix(desktop): forward DISPLAY/Wayland and use host network in cargo-desktop #27
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/desktop-display-forwarding"
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?
just dev-desktop ran the desktop binary inside the container with no DISPLAY, no Wayland socket, and no LETS_CHAT_SERVER_URL forwarded, so GTK aborted with "cannot open display" and the binary could not have reached a localhost dev server even if it had a window.
The wrapper now forwards LETS_CHAT_SERVER_URL when set, and when DISPLAY or WAYLAND_DISPLAY is set on the host it also enables --network=host and --ipc=host, mounts /tmp/.X11-unix and the Wayland XDG_RUNTIME_DIR socket, and forwards XAUTHORITY when present. Builds (cargo check, cargo clippy, cargo fmt) are unaffected because the extra args only attach when display env vars are set.
Also includes a cargo fmt --all run that touched routes/ws.rs and routes/room.rs.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com