Add support for elementary terminal

This commit is contained in:
crschnick 2023-08-26 13:07:39 +00:00
parent e85945f25a
commit 3f6bba601d
2 changed files with 15 additions and 0 deletions

View file

@ -220,6 +220,19 @@ public interface ExternalTerminalType extends PrefsChoiceValue {
}
};
ExternalTerminalType ELEMENTARY = new SimplePathType("app.elementaryTerminal", "io.elementary.terminal") {
@Override
protected CommandBuilder toCommand(String name, String file) {
return CommandBuilder.of().add("--new-tab").add("-e").addFile(file);
}
@Override
public boolean isSelectable() {
return OsType.getLocal().equals(OsType.LINUX);
}
};
ExternalTerminalType TERMINATOR = new SimplePathType("app.terminator", "terminator") {
@Override
@ -386,6 +399,7 @@ public interface ExternalTerminalType extends PrefsChoiceValue {
CMD,
KONSOLE,
XFCE,
ELEMENTARY,
GNOME_TERMINAL,
TERMINATOR,
KITTY,

View file

@ -96,6 +96,7 @@ developerDisableConnectorInstallationVersionCheck=Disable Connector Version Chec
developerDisableConnectorInstallationVersionCheckDescription=Controls whether the update checker will ignore the version number when inspecting the version of an XPipe connector installed on a remote machine.
konsole=Konsole
xfce=Xfce 4
elementaryTerminal=Elementary Terminal
macosTerminal=Terminal.app
iterm2=iTerm2
warp=Warp