diff --git a/core/src/main/java/io/xpipe/core/process/ShellTypes.java b/core/src/main/java/io/xpipe/core/process/ShellTypes.java index c47d3ef3..31201e9b 100644 --- a/core/src/main/java/io/xpipe/core/process/ShellTypes.java +++ b/core/src/main/java/io/xpipe/core/process/ShellTypes.java @@ -20,22 +20,14 @@ public class ShellTypes { public static final ShellType SH = new Sh(); public static final ShellType BASH = new Bash(); - public static ShellType getRecommendedDefault() { - if (System.getProperty("os.name").startsWith("Windows")) { + public static ShellType getPlatformDefault() { + if (OsType.getLocal().equals(OsType.WINDOWS)) { return CMD; } else { return BASH; } } - public static ShellType getPlatformDefault() { - if (System.getProperty("os.name").startsWith("Windows")) { - return CMD; - } else { - return SH; - } - } - public static ShellType[] getWindowsShells() { return new ShellType[] {CMD, POWERSHELL}; }