We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7da184c commit 9627206Copy full SHA for 9627206
src/Native/MacOS.cs
@@ -65,10 +65,12 @@ public void OpenInFileManager(string path, bool select)
65
public void OpenTerminal(string workdir)
66
{
67
var dir = string.IsNullOrEmpty(workdir) ? "~" : workdir;
68
+ dir = dir.Replace(" ", "\\ ");
69
+
70
var builder = new StringBuilder();
71
builder.AppendLine("on run argv");
72
builder.AppendLine(" tell application \"Terminal\"");
- builder.AppendLine($" do script \"cd '{dir}'\"");
73
+ builder.AppendLine($" do script \"cd {dir}\"");
74
builder.AppendLine(" activate");
75
builder.AppendLine(" end tell");
76
builder.AppendLine("end run");
0 commit comments