Skip to content

Commit bb09df0

Browse files
fix(desktop): use current_binary() to support symlinked executables (#7102)
1 parent ecbcbfb commit bb09df0

File tree

1 file changed

+3
-2
lines changed
  • packages/desktop/src-tauri/src

1 file changed

+3
-2
lines changed

packages/desktop/src-tauri/src/cli.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ fn get_cli_install_path() -> Option<std::path::PathBuf> {
1010
}
1111

1212
pub fn get_sidecar_path() -> std::path::PathBuf {
13-
tauri::utils::platform::current_exe()
14-
.expect("Failed to get current exe")
13+
// Get binary with symlinks support
14+
tauri::process::current_binary()
15+
.expect("Failed to get current binary")
1516
.parent()
1617
.expect("Failed to get parent dir")
1718
.join("opencode-cli")

0 commit comments

Comments
 (0)