Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

automation: edit.installedProfiles returns installed profiles, not host paths

Elvis33LEd22b6ec7b4d8
diff --git a/crates/automation/src/workspace.rs b/crates/automation/src/workspace.rs
index 99dedac77..cf0f61529 100644
--- a/crates/automation/src/workspace.rs
+++ b/crates/automation/src/workspace.rs
@@ -887,7 +887,9 @@ mod tests {
}
fn documents_filesystem_path_params(id: &str, params: &str) -> bool {
- if matches!(id, "prefs.get" | "prefs.reset") {
+ // These commands return settings or installed-profile paths; they do not accept a host
+ // filesystem path as an automation input.
+ if matches!(id, "prefs.get" | "prefs.reset" | "edit.installedProfiles") {
return false;
}
// These registry descriptions refer to document vector paths, not host files.