Fix kitty arguments

This commit is contained in:
crschnick 2024-04-01 07:27:55 +00:00
parent d3c173dbcd
commit fe1665eace

View file

@ -60,7 +60,9 @@ public class KittyTerminalType {
private static void open(ExternalTerminalType.LaunchConfiguration configuration) throws Exception { private static void open(ExternalTerminalType.LaunchConfiguration configuration) throws Exception {
try (var sc = LocalShell.getShell().start()) { try (var sc = LocalShell.getShell().start()) {
var payload = JsonNodeFactory.instance.objectNode(); var payload = JsonNodeFactory.instance.objectNode();
payload.putArray("args").add("bash"); var args = configuration.getDialectLaunchCommand().buildBaseParts(sc);
var argsArray = payload.putArray("args");
args.forEach(argsArray::add);
payload.put("tab_title",configuration.getColoredTitle()); payload.put("tab_title",configuration.getColoredTitle());
payload.put("type", "tab"); payload.put("type", "tab");
payload.put("logo_alpha", 0.01); payload.put("logo_alpha", 0.01);