From 952b660bf7b91fcf5aa17be72b95648fdfc5c4ea Mon Sep 17 00:00:00 2001 From: saphid <4596216+saphid@users.noreply.github.com> Date: Mon, 28 Sep 2026 22:45:26 +1000 Subject: [PATCH] Mac space: launch Chromium XR with OpenXR on and the seccomp filter off (as its own launcher does) Co-Authored-By: Claude Opus 5.5 (1M context) --- ui/frame_macview.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/frame_macview.py b/ui/frame_macview.py index 0a85d05..ea61ae3 100644 --- a/ui/frame_macview.py +++ b/ui/frame_macview.py @@ -377,7 +377,10 @@ class MacView: "bpp": q["bpp"]} url = f"http://127.0.0.1:{self.remote_port}/view?{urlencode(params)}" w, h = fit(width or 1280, height or 720) - args = " ".join(_quote(str(a)) for a in (appid, url, w, h, tag, *self.browser_flags)) + # WebXR needs Chromium XR's OpenXR feature, and its XR process needs + # the seccomp filter off on arm64 (docs/webxr-chromium.md). + xr = ["--enable-features=OpenXR", "--disable-seccomp-filter-sandbox"] if src == "space" else [] + args = " ".join(_quote(str(a)) for a in (appid, url, w, h, tag, *self.browser_flags, *xr)) try: out = self.run("bash -s -- " + args, stdin=LAUNCH, timeout=60) except Exception as e: # noqa: BLE001 - the server's Failure carries the Frame's words