diff options
| author | Aiden Cline <[email protected]> | 2026-01-06 12:59:05 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2026-01-06 12:59:05 -0600 |
| commit | 675eba65886004eb90ef163f5bc33b5832427603 (patch) | |
| tree | 765a0fd16a447fd7e3d028bee9fbcdef1836efcb | |
| parent | 01eadf3ded6a93c5ce0ab51ae16c7bb6e962d39c (diff) | |
| download | opencode-675eba65886004eb90ef163f5bc33b5832427603.tar.gz opencode-675eba65886004eb90ef163f5bc33b5832427603.zip | |
Revert "fix(desktop): use current_binary() to support symlinked executables (#7102)"
This reverts commit bb09df0c778896daa36b8b43cb3447ef25b16b4b.
| -rw-r--r-- | packages/desktop/src-tauri/src/cli.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/desktop/src-tauri/src/cli.rs b/packages/desktop/src-tauri/src/cli.rs index 9de936cf5..6b86cbcd2 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<std::path::PathBuf> { } 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") |
