Terminal fixes

This commit is contained in:
crschnick 2024-11-11 10:36:49 +00:00
parent 835e191b3e
commit f748755fc9
2 changed files with 5 additions and 2 deletions

View file

@ -742,7 +742,7 @@ public interface ExternalTerminalType extends PrefsChoiceValue {
@Override
public int getProcessHierarchyOffset() {
return 1;
return ProcessControlProvider.get().getEffectiveLocalDialect() == ShellDialects.BASH ? 0 : 1;
}
@Override

View file

@ -1,5 +1,6 @@
package io.xpipe.app.terminal;
import io.xpipe.app.ext.ProcessControlProvider;
import io.xpipe.app.issue.ErrorEvent;
import io.xpipe.app.util.CommandSupport;
import io.xpipe.app.util.LocalShell;
@ -7,6 +8,8 @@ import io.xpipe.app.util.ShellTemp;
import io.xpipe.app.util.ThreadHelper;
import io.xpipe.core.process.CommandBuilder;
import io.xpipe.core.process.ShellControl;
import io.xpipe.core.process.ShellDialect;
import io.xpipe.core.process.ShellDialects;
import io.xpipe.core.store.FilePath;
import io.xpipe.core.util.XPipeInstallation;
@ -96,7 +99,7 @@ public interface KittyTerminalType extends ExternalTerminalType, TrackableTermin
@Override
public int getProcessHierarchyOffset() {
return 1;
return ProcessControlProvider.get().getEffectiveLocalDialect() == ShellDialects.BASH ? 0 : 1;
}
public boolean isAvailable() {