record: use correct proc (#47)

Previously, the start() function always invoked 'wl-screenrec' regardless of detected GPU, which prevented recording on systems with NVIDIA GPUswhen 'wf-recorder' is available.

This change updates start() to launch the recorder stored in
self.recorder, ensuring the correct recorder is used based on GPU detection.
This commit is contained in:
Matheus Oliveira
2025-08-20 05:19:06 +03:00
committed by GitHub
parent 202f687dde
commit 12f0d51862
+1 -1
View File
@@ -78,7 +78,7 @@ class Command:
recording_path.parent.mkdir(parents=True, exist_ok=True)
proc = subprocess.Popen(
["wl-screenrec", *args, "-f", recording_path],
[self.recorder, *args, "-f", recording_path],
stderr=subprocess.PIPE,
text=True,
start_new_session=True,