Render queue: unsaved project outputs go to ~/Movies or home, not the working directory (#446)

This commit is contained in:
MarekSpodBiedry
2026-10-10 19:28:44 +02:00
parent 1446e27d85
commit 576d386d55
2 changed files with 23 additions and 1 deletions
+10
View File
@@ -682,3 +682,13 @@ fn dynamic_menus_and_window_viewer_labels() {
assert!(labels.iter().any(|x| x == l), "{l}");
}
}
#[test]
fn unsaved_project_renders_to_movies_or_home_not_the_working_directory() {
// A Finder-launched app has `/` as its working directory, where renders fail (#446).
let home = tmp("home446");
assert_eq!(crate::render_queue::default_output_base(Some(home.clone())), Some(home.clone()));
std::fs::create_dir_all(home.join("Movies")).unwrap();
assert_eq!(crate::render_queue::default_output_base(Some(home.clone())), Some(home.join("Movies")));
assert_eq!(crate::render_queue::default_output_base(None), None);
}