From b6e54be403455a128a450c803a0fcb894596957c Mon Sep 17 00:00:00 2001 From: Abhiroop Reddy Date: Mon, 9 Dec 2024 02:29:50 +0530 Subject: [PATCH] Fix terminal on windows (#859) * Fix terminal on windows --- apps/studio/electron/main/run/terminal.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/studio/electron/main/run/terminal.ts b/apps/studio/electron/main/run/terminal.ts index a73b7219..3ee29ef8 100644 --- a/apps/studio/electron/main/run/terminal.ts +++ b/apps/studio/electron/main/run/terminal.ts @@ -24,7 +24,8 @@ class TerminalManager { create(id: string, options?: { cwd?: string }): boolean { try { const shell = os.platform() === 'win32' ? 'powershell.exe' : 'bash'; - const shellArgs = os.platform() === 'win32' ? ['-NoLogo'] : []; + const shellArgs = + os.platform() === 'win32' ? ['-NoLogo', '-ExecutionPolicy', 'Bypass'] : []; const childProcess = spawn(shell, shellArgs, { cwd: options?.cwd ?? process.env.HOME,