diff --git a/app/src/main/java/io/xpipe/app/terminal/TerminalPaneConfiguration.java b/app/src/main/java/io/xpipe/app/terminal/TerminalPaneConfiguration.java index 254e8be90..e4cce0d1d 100644 --- a/app/src/main/java/io/xpipe/app/terminal/TerminalPaneConfiguration.java +++ b/app/src/main/java/io/xpipe/app/terminal/TerminalPaneConfiguration.java @@ -75,6 +75,10 @@ public class TerminalPaneConfiguration { var logFile = sc.getLocalSystemAccess().translateFromLocalSystemPath(FilePath.of(log)); if (sc.getOsType() == OsType.WINDOWS) { + if (LocalShell.getLocalPowershell().isEmpty()) { + throw ErrorEventFactory.expected(new IllegalStateException("PowerShell is required for terminal logging but it failed to start")); + } + var launcherScript = ScriptHelper.createExecScript( ShellDialects.POWERSHELL, sc,