fix(recording): compile the Wayland recorder on Linux

main
mula.liu 2026-12-01 17:41:48 +08:00
parent 0dbf797a21
commit 3849029ef8
2 changed files with 4 additions and 4 deletions

View File

@ -14,9 +14,9 @@ itself.
### Fixed
- The Linux build of the test suite compiles again: the recording path now
resolves the capture region and output file before the Wayland branch uses
them.
- The Linux build compiles again: the recording path resolves the capture
region and output file before the Wayland branch uses them, and the
wf-recorder command receives the output as a path instead of a string.
- The Windows history-import test builds its fixture with `serde_json` instead
of pasting a path into a raw JSON string, so a path containing backslashes
no longer fails to parse.

View File

@ -188,7 +188,7 @@ fn start_process(
if let Some(recorder) = crate::files::resolve_tool("wf-recorder") {
let geometry = x11_geometry(&region);
let mut wayland = crate::process::command(recorder);
wayland.args(["-f", &output, "-g", &geometry]);
wayland.arg("-f").arg(&output).args(["-g", &geometry]);
if let Some(fps) = options.fps {
wayland.args(["-r", &fps.to_string()]);
}