forked from Shinonome/caelestia-cli
record: fix dir not exists error
This commit is contained in:
@@ -39,6 +39,7 @@ class Command:
|
|||||||
else:
|
else:
|
||||||
raise ValueError("No audio source found")
|
raise ValueError("No audio source found")
|
||||||
|
|
||||||
|
recording_path.parent.mkdir(parents=True, exist_ok=True)
|
||||||
proc = subprocess.Popen(
|
proc = subprocess.Popen(
|
||||||
["wl-screenrec", *args, "--codec", "hevc", "-f", recording_path],
|
["wl-screenrec", *args, "--codec", "hevc", "-f", recording_path],
|
||||||
stderr=subprocess.PIPE,
|
stderr=subprocess.PIPE,
|
||||||
|
|||||||
Reference in New Issue
Block a user