summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-21 12:31:26 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-21 12:31:26 +1000
commite691dfb7fc78223456a67763ee84489c414e93af (patch)
tree3f0950578561cd4342be8468982fc1a8318c84c1
parentshell: disable textinput log warning (diff)
downloadcaelestia-cli-e691dfb7fc78223456a67763ee84489c414e93af.tar.gz
caelestia-cli-e691dfb7fc78223456a67763ee84489c414e93af.tar.bz2
caelestia-cli-e691dfb7fc78223456a67763ee84489c414e93af.zip
record: fix dir not exists error
-rw-r--r--src/caelestia/subcommands/record.py1
1 files changed, 1 insertions, 0 deletions
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,