From e691dfb7fc78223456a67763ee84489c414e93af Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 21 Jun 2025 12:31:26 +1000 Subject: record: fix dir not exists error --- src/caelestia/subcommands/record.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/caelestia/subcommands/record.py b/src/caelestia/subcommands/record.py index dd0a5d0..77147d2 100644 --- a/src/caelestia/subcommands/record.py +++ b/src/caelestia/subcommands/record.py @@ -39,6 +39,7 @@ class Command: else: raise ValueError("No audio source found") + recording_path.parent.mkdir(parents=True, exist_ok=True) proc = subprocess.Popen( ["wl-screenrec", *args, "--codec", "hevc", "-f", recording_path], stderr=subprocess.PIPE, -- cgit v1.2.3-freya