mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-30 00:56:56 +13:00
Add more terminal support
This commit is contained in:
parent
f800ecd46d
commit
119ebcbf6c
2 changed files with 43 additions and 0 deletions
|
@ -413,6 +413,46 @@ public interface ExternalTerminalType extends PrefsChoiceValue {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ExternalTerminalType XTERM = new SimplePathType("app.xterm", "xterm") {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected CommandBuilder toCommand(String name, String file) {
|
||||||
|
return CommandBuilder.of().add("-title").addQuoted(name).add("-e").addQuoted(file);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isSelectable() {
|
||||||
|
return OsType.getLocal().equals(OsType.LINUX);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
ExternalTerminalType DEEPIN_TERMINAL = new SimplePathType("app.deepinTerminal", "deepin-terminal") {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected CommandBuilder toCommand(String name, String file) {
|
||||||
|
return CommandBuilder.of().add("-C").addQuoted(file);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isSelectable() {
|
||||||
|
return OsType.getLocal().equals(OsType.LINUX);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ExternalTerminalType Q_TERMINAL = new SimplePathType("app.qTerminal", "qterminal") {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected CommandBuilder toCommand(String name, String file) {
|
||||||
|
return CommandBuilder.of().add("-e").addQuoted(file);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isSelectable() {
|
||||||
|
return OsType.getLocal().equals(OsType.LINUX);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
ExternalTerminalType MACOS_TERMINAL = new MacOsTerminalType();
|
ExternalTerminalType MACOS_TERMINAL = new MacOsTerminalType();
|
||||||
|
|
||||||
ExternalTerminalType ITERM2 = new ITerm2Type();
|
ExternalTerminalType ITERM2 = new ITerm2Type();
|
||||||
|
|
|
@ -55,6 +55,9 @@ coolRetroTerm=Cool Retro Term
|
||||||
guake=Guake
|
guake=Guake
|
||||||
alacritty=Alacritty
|
alacritty=Alacritty
|
||||||
tilda=Tilda
|
tilda=Tilda
|
||||||
|
xterm=XTerm
|
||||||
|
deepinTerminal=Deepin Terminal
|
||||||
|
qterminal=QTerminal
|
||||||
recent=Recent
|
recent=Recent
|
||||||
hostFeatureUnsupported=$FEATURE$ is not installed on the host
|
hostFeatureUnsupported=$FEATURE$ is not installed on the host
|
||||||
missingStore=$NAME$ does not exist
|
missingStore=$NAME$ does not exist
|
||||||
|
|
Loading…
Reference in a new issue