Skip to content

Commit

Permalink
Fix terminal on windows (#859)
Browse files Browse the repository at this point in the history
* Fix terminal on windows
  • Loading branch information
abhiroopc84 authored Dec 8, 2024
1 parent 9d820dc commit b6e54be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/studio/electron/main/run/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b6e54be

Please sign in to comment.