mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 15:10:23 +00:00
Fixes
This commit is contained in:
parent
2d1e5298a9
commit
ac2c97301f
3 changed files with 6 additions and 4 deletions
|
@ -42,7 +42,7 @@ public class SyncCategory extends AppPrefsCategory {
|
|||
.addString(prefs.storageGitRemote)
|
||||
.disable(prefs.enableGitStorage.not())
|
||||
.addComp(terminalTest)
|
||||
.disable(prefs.storageGitRemote.isNull().and(prefs.enableGitStorage))
|
||||
.disable(prefs.storageGitRemote.isNull().or(prefs.enableGitStorage.not()))
|
||||
.addComp(prefs.getCustomComp("gitVaultIdentityStrategy"))
|
||||
.nameAndDescription("openDataDir")
|
||||
.addComp(new ButtonComp(AppI18n.observable("openDataDirButton"), () -> {
|
||||
|
|
|
@ -299,7 +299,7 @@ public interface ExternalTerminalType extends PrefsChoiceValue {
|
|||
try (var sc = LocalShell.getShell()) {
|
||||
return switch (OsType.getLocal()) {
|
||||
case OsType.Linux linux -> {
|
||||
yield Files.exists(Path.of("/opt/termius"));
|
||||
yield Files.exists(Path.of("/opt/Termius"));
|
||||
}
|
||||
case OsType.MacOs macOs -> {
|
||||
yield Files.exists(Path.of("/Applications/Termius.app"));
|
||||
|
@ -1030,12 +1030,13 @@ public interface ExternalTerminalType extends PrefsChoiceValue {
|
|||
XTERM,
|
||||
DEEPIN_TERMINAL,
|
||||
FOOT,
|
||||
Q_TERMINAL
|
||||
Q_TERMINAL,
|
||||
TERMIUS
|
||||
);
|
||||
List<ExternalTerminalType> MACOS_TERMINALS = List.of(
|
||||
KittyTerminalType.KITTY_MACOS,
|
||||
WARP,
|
||||
ITERM2,
|
||||
KittyTerminalType.KITTY_MACOS,
|
||||
TabbyTerminalType.TABBY_MAC_OS,
|
||||
AlacrittyTerminalType.ALACRITTY_MAC_OS,
|
||||
WezTerminalType.WEZTERM_MAC_OS,
|
||||
|
|
|
@ -23,6 +23,7 @@ public class TerminalLauncher {
|
|||
}
|
||||
openDirect(title, command, type);
|
||||
}
|
||||
|
||||
public static void openDirect(String title, FailableFunction<ShellControl, String, Exception> command, ExternalTerminalType type)
|
||||
throws Exception {
|
||||
try (var sc = LocalShell.getShell().start()) {
|
||||
|
|
Loading…
Reference in a new issue