mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
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.
This commit is contained in:
parent
28aba35ff9
commit
2b7e2edee5
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue