Term fixes

This commit is contained in:
crschnick 2024-08-29 02:54:07 +00:00
parent 82b501d4cc
commit 13c9644ff5
2 changed files with 2 additions and 2 deletions

View file

@ -299,7 +299,7 @@ public interface ExternalTerminalType extends PrefsChoiceValue {
try (var sc = LocalShell.getShell()) {
return switch (OsType.getLocal()) {
case OsType.Linux linux -> {
yield CommandSupport.isInPathSilent(sc, "termius");
yield Files.exists(Path.of("/opt/termius"));
}
case OsType.MacOs macOs -> {
yield Files.exists(Path.of("/Applications/Termius.app"));

View file

@ -184,7 +184,7 @@ public interface KittyTerminalType extends ExternalTerminalType {
.add("-o", "allow_remote_control=socket-only", "--listen-on", "unix:" + getSocket()));
var elapsed = System.currentTimeMillis() - time;
// Good heuristic on how long to wait
ThreadHelper.sleep(5 * elapsed);
ThreadHelper.sleep(15 * elapsed);
return true;
}
}