summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packages/desktop/src-tauri/src/cli.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/desktop/src-tauri/src/cli.rs b/packages/desktop/src-tauri/src/cli.rs
index 6b86cbcd2..9de936cf5 100644
--- a/packages/desktop/src-tauri/src/cli.rs
+++ b/packages/desktop/src-tauri/src/cli.rs
@@ -10,8 +10,9 @@ fn get_cli_install_path() -> Option<std::path::PathBuf> {
}
pub fn get_sidecar_path() -> std::path::PathBuf {
- tauri::utils::platform::current_exe()
- .expect("Failed to get current exe")
+ // Get binary with symlinks support
+ tauri::process::current_binary()
+ .expect("Failed to get current binary")
.parent()
.expect("Failed to get parent dir")
.join("opencode-cli")