mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-05 14:59:29 -05:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user