From 12f0d518622cbb9e00455c9591bd597f64a1747b Mon Sep 17 00:00:00 2001 From: Matheus Oliveira Date: Wed, 20 Aug 2025 05:19:06 +0300 Subject: 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. --- src/caelestia/subcommands/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/caelestia/subcommands/record.py b/src/caelestia/subcommands/record.py index 6481a0a..71b8c5d 100644 --- a/src/caelestia/subcommands/record.py +++ b/src/caelestia/subcommands/record.py @@ -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, -- cgit v1.2.3-freya