mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-10-01 09:40:35 +13:00
Fix wezterm macos issues
This commit is contained in:
parent
298cd28872
commit
d9f1a5a769
1 changed files with 6 additions and 10 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue