From 3f6bba601d4af6700ab7d71a0845aba226ea984a Mon Sep 17 00:00:00 2001 From: crschnick Date: Sat, 26 Aug 2023 13:07:39 +0000 Subject: [PATCH] Add support for elementary terminal --- .../io/xpipe/app/prefs/ExternalTerminalType.java | 14 ++++++++++++++ .../app/resources/lang/preferences_en.properties | 1 + 2 files changed, 15 insertions(+) diff --git a/app/src/main/java/io/xpipe/app/prefs/ExternalTerminalType.java b/app/src/main/java/io/xpipe/app/prefs/ExternalTerminalType.java index a9fda0224..417c981ea 100644 --- a/app/src/main/java/io/xpipe/app/prefs/ExternalTerminalType.java +++ b/app/src/main/java/io/xpipe/app/prefs/ExternalTerminalType.java @@ -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, diff --git a/app/src/main/resources/io/xpipe/app/resources/lang/preferences_en.properties b/app/src/main/resources/io/xpipe/app/resources/lang/preferences_en.properties index 94c68f72e..eaea2c74a 100644 --- a/app/src/main/resources/io/xpipe/app/resources/lang/preferences_en.properties +++ b/app/src/main/resources/io/xpipe/app/resources/lang/preferences_en.properties @@ -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