diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-21 12:31:26 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-21 12:31:26 +1000 |
| commit | e691dfb7fc78223456a67763ee84489c414e93af (patch) | |
| tree | 3f0950578561cd4342be8468982fc1a8318c84c1 /src/caelestia/subcommands | |
| parent | shell: disable textinput log warning (diff) | |
| download | caelestia-cli-e691dfb7fc78223456a67763ee84489c414e93af.tar.gz caelestia-cli-e691dfb7fc78223456a67763ee84489c414e93af.tar.bz2 caelestia-cli-e691dfb7fc78223456a67763ee84489c414e93af.zip | |
record: fix dir not exists error
Diffstat (limited to 'src/caelestia/subcommands')
| -rw-r--r-- | src/caelestia/subcommands/record.py | 1 |
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, |