diff --git a/app/src/main/java/io/xpipe/app/util/LocalShell.java b/app/src/main/java/io/xpipe/app/util/LocalShell.java index 480f36448..4474e607c 100644 --- a/app/src/main/java/io/xpipe/app/util/LocalShell.java +++ b/app/src/main/java/io/xpipe/app/util/LocalShell.java @@ -19,9 +19,13 @@ public class LocalShell { } public static ShellControl getLocalPowershell() throws Exception { + if (ShellDialects.isPowershell(getShell())) { + return local.start(); + } + if (localPowershell == null) { localPowershell = ProcessControlProvider.get() - .createLocalProcessControl(true) + .createLocalProcessControl(false) .subShell(ShellDialects.POWERSHELL) .start(); }