mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-30 00:56:56 +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") {
|
||||
|
||||
@Override
|
||||
public boolean supportsColoredTitle() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void launch(LaunchConfiguration configuration) throws Exception {
|
||||
LocalShell.getShell()
|
||||
.executeSimpleCommand(CommandBuilder.of()
|
||||
.add("open", "-a")
|
||||
.addQuoted("WezTerm.app")
|
||||
var c = CommandBuilder.of()
|
||||
.addFile(getApplicationPath().orElseThrow().resolve("Contents").resolve("MacOS")
|
||||
.resolve("wezterm-gui").toString())
|
||||
.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