Fix wezterm macos issues

This commit is contained in:
crschnick 2024-01-18 15:17:56 +00:00
parent 298cd28872
commit d9f1a5a769

View file

@ -511,19 +511,15 @@ public interface ExternalTerminalType extends PrefsChoiceValue {
ExternalTerminalType WEZ_MACOS = new MacOsType("app.wezMacOs", "WezTerm") { ExternalTerminalType WEZ_MACOS = new MacOsType("app.wezMacOs", "WezTerm") {
@Override
public boolean supportsColoredTitle() {
return false;
}
@Override @Override
public void launch(LaunchConfiguration configuration) throws Exception { public void launch(LaunchConfiguration configuration) throws Exception {
LocalShell.getShell() var c = CommandBuilder.of()
.executeSimpleCommand(CommandBuilder.of() .addFile(getApplicationPath().orElseThrow().resolve("Contents").resolve("MacOS")
.add("open", "-a") .resolve("wezterm-gui").toString())
.addQuoted("WezTerm.app")
.add("start") .add("start")
.addFile(configuration.getScriptFile())); .addFile(configuration.getScriptFile()).buildString(LocalShell.getShell());
c = ScriptHelper.createDetachCommand(LocalShell.getShell(), c);
LocalShell.getShell().executeSimpleCommand(c);
} }
}; };