fix(desktop): use current_binary() to support symlinked executables (#7102)

This commit is contained in:
Jérôme Benoit
2026-01-06 12:07:18 -06:00
committed by GitHub
parent ecbcbfbe90
commit bb09df0c77
+3 -2
View File
@@ -10,8 +10,9 @@ fn get_cli_install_path() -> Option<std::path::PathBuf> {
} }
pub fn get_sidecar_path() -> std::path::PathBuf { pub fn get_sidecar_path() -> std::path::PathBuf {
tauri::utils::platform::current_exe() // Get binary with symlinks support
.expect("Failed to get current exe") tauri::process::current_binary()
.expect("Failed to get current binary")
.parent() .parent()
.expect("Failed to get parent dir") .expect("Failed to get parent dir")
.join("opencode-cli") .join("opencode-cli")