From 47f9bcaef099ddfec9945fa5adfdcbb07456d755 Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Fri, 19 Feb 2021 22:44:53 +0200 Subject: [PATCH] Respect PTYSHELL env variable if set Signed-off-by: Lauri Nevala --- src/main/shell-session.ts | 2 +- src/renderer/components/+preferences/preferences.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/shell-session.ts b/src/main/shell-session.ts index de6c552aeb..4b90ec401e 100644 --- a/src/main/shell-session.ts +++ b/src/main/shell-session.ts @@ -105,7 +105,7 @@ export class ShellSession extends EventEmitter { protected async getShellEnv() { const env = JSON.parse(JSON.stringify(await shellEnv())); const pathStr = [this.kubectlBinDir, this.helmBinDir, process.env.PATH].join(path.delimiter); - const shell = userStore.preferences.shell || process.env.SHELL; + const shell = userStore.preferences.shell || process.env.SHELL || process.env.PTYSHELL; if(isWindows) { env["SystemRoot"] = process.env.SystemRoot; diff --git a/src/renderer/components/+preferences/preferences.tsx b/src/renderer/components/+preferences/preferences.tsx index 17df93a363..c5c95bb040 100644 --- a/src/renderer/components/+preferences/preferences.tsx +++ b/src/renderer/components/+preferences/preferences.tsx @@ -134,7 +134,7 @@ export class Preferences extends React.Component {

Terminal Shell

this.shell = v} onBlur={() => preferences.shell = this.shell}