Skip to content

Commit

Permalink
Merge pull request #94 from s2quake/fix/new-terminal-macos
Browse files Browse the repository at this point in the history
Fixed an issue where creating a new terminal fails
  • Loading branch information
s2quake authored Nov 28, 2024
2 parents a2918aa + e612989 commit 3e89951
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions .submodules/lib9c
Submodule lib9c added at f2c372
14 changes: 8 additions & 6 deletions src/console/LibplanetConsole.Console/ProcessBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,15 @@ private ProcessStartInfo GetProcessStartInfoOnMacOS()
FileName = "/usr/bin/osascript",
ArgumentList =
{
"-e",
"tell application \"Terminal\"",
"-e",
$"-e",
$"tell application \"Terminal\"",
$"-e",
$" activate",
$"-e",
$" delay 1",
$"-e",
$" do script \"{filename} {arguments}; exit\"",
"-e",
$"activate",
"-e",
$"-e",
$"end tell",
},
};
Expand Down

0 comments on commit 3e89951

Please sign in to comment.