Kitty fixes

This commit is contained in:
crschnick 2024-06-30 12:56:38 +00:00
parent 61c3547497
commit 30f750d8f1

View file

@ -130,6 +130,7 @@ public interface KittyTerminalType extends ExternalTerminalType {
return false;
}
var time = System.currentTimeMillis();
sc.executeSimpleCommand(CommandBuilder.of()
.add("kitty")
.add(
@ -138,7 +139,9 @@ public interface KittyTerminalType extends ExternalTerminalType {
"--listen-on",
"unix:" + getSocket(),
"--detach"));
ThreadHelper.sleep(1500);
var elapsed = System.currentTimeMillis() - time;
// Good heuristic on how long to wait
ThreadHelper.sleep(5 * elapsed);
return true;
}
}