summaryrefslogtreecommitdiff
path: root/src/app/api.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-20 00:29:53 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-20 00:34:27 +0300
commit2b97799b6715fd6c355db9c225029765971915e6 (patch)
treecb7c2c7093f439ad3460687b88c3e6cf539b64e8 /src/app/api.rs
parentff8e5a14abe445a61dc200fd30a70870c75d183c (diff)
feat: add configurable default shell
refs #196
Diffstat (limited to 'src/app/api.rs')
-rw-r--r--src/app/api.rs16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/app/api.rs b/src/app/api.rs
index ab26f82b..6eb95f03 100644
--- a/src/app/api.rs
+++ b/src/app/api.rs
@@ -637,6 +637,9 @@ impl App {
.or_else(|| std::env::current_dir().ok())
.unwrap_or_else(|| std::path::PathBuf::from("/"));
let (rows, cols) = self.state.estimate_pane_size();
+ let default_shell = self.state.default_shell.clone();
+ let scrollback_limit_bytes = self.state.pane_scrollback_limit_bytes;
+ let host_terminal_theme = self.state.host_terminal_theme;
let result = self
.state
.workspaces
@@ -647,8 +650,9 @@ impl App {
rows,
cols,
cwd,
- self.state.pane_scrollback_limit_bytes,
- self.state.host_terminal_theme,
+ scrollback_limit_bytes,
+ host_terminal_theme,
+ &default_shell,
)
});
match result {
@@ -1019,6 +1023,9 @@ impl App {
)
})
});
+ let default_shell = self.state.default_shell.clone();
+ let scrollback_limit_bytes = self.state.pane_scrollback_limit_bytes;
+ let host_terminal_theme = self.state.host_terminal_theme;
let Some(ws) = self.state.workspaces.get_mut(ws_idx) else {
return serde_json::to_string(&ErrorResponse {
id: request.id,
@@ -1043,8 +1050,9 @@ impl App {
rows,
cols,
split_cwd,
- self.state.pane_scrollback_limit_bytes,
- self.state.host_terminal_theme,
+ scrollback_limit_bytes,
+ host_terminal_theme,
+ &default_shell,
params.focus,
) {
Some(Ok(result)) => result,