From 1f3689ffdf0e126d3934bbc0eb6dbb47c6d134d7 Mon Sep 17 00:00:00 2001 From: Carlos Alcaide Corvo Date: Fri, 8 Sep 2023 14:52:26 -0700 Subject: [PATCH] Chore terminal tweaks (#1890) Co-authored-by: Zhihe Li --- ui/desktop/electron-app/src/ipc/handlers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/desktop/electron-app/src/ipc/handlers.js b/ui/desktop/electron-app/src/ipc/handlers.js index df4aae363..e2660fe65 100644 --- a/ui/desktop/electron-app/src/ipc/handlers.js +++ b/ui/desktop/electron-app/src/ipc/handlers.js @@ -119,7 +119,7 @@ ipcMain.on('createTerminal', (event, payload) => { const { id, cols, rows } = payload; const { sender } = event; const terminalShell = - os.platform() === 'win32' ? 'powershell.exe' : '/bin/bash'; + os.platform() === 'win32' ? 'powershell.exe' : process.env.SHELL || '/bin/bash'; const ptyProcess = pty.spawn(terminalShell, [], { name: 'xterm-color', cols,