diff options
| author | Jérôme Benoit <[email protected]> | 2026-01-06 19:07:18 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-06 12:07:18 -0600 |
| commit | bb09df0c778896daa36b8b43cb3447ef25b16b4b (patch) | |
| tree | 6730da6a304921a57922e68458c767e270ca090b /packages/desktop/src-tauri/src/cli.rs | |
| parent | ecbcbfbe901cb1393990318f0605c91ca17ed420 (diff) | |
| download | opencode-bb09df0c778896daa36b8b43cb3447ef25b16b4b.tar.gz opencode-bb09df0c778896daa36b8b43cb3447ef25b16b4b.zip | |
fix(desktop): use current_binary() to support symlinked executables (#7102)
Diffstat (limited to 'packages/desktop/src-tauri/src/cli.rs')
| -rw-r--r-- | packages/desktop/src-tauri/src/cli.rs | 5 |
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") |
