diff options
| author | Dax Raad <[email protected]> | 2025-12-16 14:21:07 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-12-16 14:21:19 -0500 |
| commit | 2b7e2edee55ccb4d7bef0ba167864db399b29b20 (patch) | |
| tree | 1d1acc374d405568c8cc020d6cb7ad25189f3818 | |
| parent | 28aba35ff9b1d1fe58da24735a51299ffe1f65d0 (diff) | |
| download | opencode-2b7e2edee55ccb4d7bef0ba167864db399b29b20.tar.gz opencode-2b7e2edee55ccb4d7bef0ba167864db399b29b20.zip | |
core: ensure desktop app loads user shell environment variables
Changes shell spawn flags from -l to -il so that ~/.zshrc and
~/.bashrc are sourced when starting the desktop app on macOS
and Linux. This fixes missing PATH and other environment
variables that users expect to be available.
| -rw-r--r-- | packages/tauri/src-tauri/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/tauri/src-tauri/src/lib.rs b/packages/tauri/src-tauri/src/lib.rs index c35137043..08bec528d 100644 --- a/packages/tauri/src-tauri/src/lib.rs +++ b/packages/tauri/src-tauri/src/lib.rs @@ -78,7 +78,7 @@ fn spawn_sidecar(app: &AppHandle, port: u16) -> CommandChild { .env("OPENCODE_EXPERIMENTAL_ICON_DISCOVERY", "true") .env("OPENCODE_CLIENT", "desktop") .args([ - "-l", + "-il", "-c", &format!("{} serve --port={}", sidecar_path.display(), port), ]) |
