From fe1665eace47b475c87bd6717b7d934f2a7d4819 Mon Sep 17 00:00:00 2001 From: crschnick Date: Mon, 1 Apr 2024 07:27:55 +0000 Subject: [PATCH] Fix kitty arguments --- .../main/java/io/xpipe/app/terminal/KittyTerminalType.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/xpipe/app/terminal/KittyTerminalType.java b/app/src/main/java/io/xpipe/app/terminal/KittyTerminalType.java index 656a3bc33..10e2d80ff 100644 --- a/app/src/main/java/io/xpipe/app/terminal/KittyTerminalType.java +++ b/app/src/main/java/io/xpipe/app/terminal/KittyTerminalType.java @@ -60,7 +60,9 @@ public class KittyTerminalType { private static void open(ExternalTerminalType.LaunchConfiguration configuration) throws Exception { try (var sc = LocalShell.getShell().start()) { 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("type", "tab"); payload.put("logo_alpha", 0.01);