The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(create-3d): Linux finds Blender only in absolute PATH folders
purple9d8bb5a73ef4
diff --git a/src-tauri/src/commands/blender.rs b/src-tauri/src/commands/blender.rsindex fbdd09b8..b6c8584a 100644--- a/src-tauri/src/commands/blender.rs+++ b/src-tauri/src/commands/blender.rs@@ -161,7 +161,9 @@ pub(crate) fn windows_candidates(registered: &[PathBuf], program_dirs: &[PathBuf#[cfg_attr(not(target_os = "linux"), allow(dead_code))]pub(crate) fn linux_candidates(home: Option<&Path>, path_dirs: &[PathBuf]) -> Vec<Install> {let mut files: Vec<(PathBuf, &'static str)> = Vec::new();- for d in path_dirs {+ // Only absolute PATH folders: an empty entry means "the current folder",+ // and LU must not run a `blender` that happens to lie where it started.+ for d in path_dirs.iter().filter(|d| d.is_absolute()) {files.push((d.join("blender"), "path"));}for f in ["/usr/bin/blender", "/usr/local/bin/blender", "/snap/bin/blender"] {@@ -819,6 +821,16 @@ mod tests {assert_eq!(ours[0].exe, bin.join("blender"));}+ #[cfg(unix)]+ #[test]+ fn linux_ignores_empty_and_relative_path_entries() {+ let t = tmp();+ let rel = PathBuf::from("rel-bin-c3d");+ let found = linux_candidates(Some(&t.path().join("home")), &[PathBuf::new(), PathBuf::from("."), rel.clone()]);+ assert!(found.iter().all(|i| i.exe.is_absolute()), "{found:?}");+ assert!(!found.iter().any(|i| i.source == "path"), "{found:?}");+ }+#[test]fn versions_are_read_and_old_ones_refused() {assert_eq!(parse_version("Blender 5.2.1 LTS\n\tbuild date: 2026-08-25\n").as_deref(), Some("5.2.1"));