record: fix dir not exists error

This commit is contained in:
2 * r + 2 * t
2025-06-21 12:31:26 +10:00
parent 2664749c75
commit e691dfb7fc
+1
View File
@@ -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,