1
0
Fork 0
mirror of https://github.com/xpipe-io/xpipe.git synced 2025-04-22 12:13:25 +00:00

Script adjustments for bsd

This commit is contained in:
crschnick 2024-10-16 14:13:59 +00:00
parent e80cf7e4b0
commit 63bef7161a

View file

@ -131,11 +131,9 @@ public class TerminalLauncher {
entry != null ? color : null, adjustedTitle, cleanTitle, ps, ShellDialects.POWERSHELL);
return config;
} else {
var content =
"""
script --quiet --command "%s" "%s"
"""
.formatted(preparationScript, logFile);
var content = sc.getOsType() == OsType.MACOS || sc.getOsType() == OsType.BSD ?
"script -q \"%s\" \"%s\"".formatted(logFile, preparationScript) :
"script --quiet --command \"%s\" \"%s\"".formatted(preparationScript, logFile);
var ps = ScriptHelper.createExecScript(sc.getShellDialect(), sc, content);
var config = new ExternalTerminalType.LaunchConfiguration(
entry != null ? color : null, adjustedTitle, cleanTitle, ps, sc.getShellDialect());