From 9cae8cdd377c0b4ca45684d9d58f7c1a60228377 Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Tue, 6 Jan 2026 12:59:05 -0600 Subject: [PATCH] Revert "fix(desktop): use current_binary() to support symlinked executables (#7102)" This reverts commit 9b95e42ed25420bed4f79ecf894814ea9354ff59. --- packages/desktop/src-tauri/src/cli.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/desktop/src-tauri/src/cli.rs b/packages/desktop/src-tauri/src/cli.rs index 9de936cf5e..6b86cbcd2c 100644 --- a/packages/desktop/src-tauri/src/cli.rs +++ b/packages/desktop/src-tauri/src/cli.rs @@ -10,9 +10,8 @@ fn get_cli_install_path() -> Option { } pub fn get_sidecar_path() -> std::path::PathBuf { - // Get binary with symlinks support - tauri::process::current_binary() - .expect("Failed to get current binary") + tauri::utils::platform::current_exe() + .expect("Failed to get current exe") .parent() .expect("Failed to get parent dir") .join("opencode-cli")