fix(desktop): always search exe parent dir for bundled sidecar binaries

command_search_dirs gated the exe parent directory behind an AppHandle
check, but discover_acp_providers called find_command with app: None.
In production DMGs, bundled sidecars live in Sprout.app/Contents/MacOS/
next to the main exe, so they were never found. Remove the guard so the
exe parent is always searched regardless of whether an AppHandle is
available.
This commit is contained in:
Will Pfleger
2026-05-22 21:23:01 -04:00
parent d2b548627d
commit 710cb4295c
@@ -229,11 +229,9 @@ fn command_search_dirs(app: Option<&AppHandle>) -> Vec<PathBuf> {
dirs.push(current_dir.join("target/debug"));
}
if app.is_some() {
if let Ok(exe_path) = std::env::current_exe() {
if let Some(parent) = exe_path.parent() {
dirs.push(parent.to_path_buf());
}
if let Ok(exe_path) = std::env::current_exe() {
if let Some(parent) = exe_path.parent() {
dirs.push(parent.to_path_buf());
}
}