fix: path trimming and spell issue.

This commit is contained in:
walterlv 2024-04-08 15:02:07 +08:00
parent 421127bec9
commit daaa7cfd6a
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ namespace SourceGit.Models
public void Konsole(Func<string> platform_finder)
{
TryAdd("gnome-terminal", "gnome.png", "/usr/bin/konsole", "--workdir \"{0}\"", platform_finder);
TryAdd("gnome-terminal", "konsole.png", "/usr/bin/konsole", "--workdir \"{0}\"", platform_finder);
}
public void osaScript(Func<string> platform_finder)

View file

@ -157,7 +157,7 @@ namespace SourceGit.Native
})!;
var fullPath = process.StandardOutput.ReadToEnd();
process.WaitForExit();
return fullPath;
return fullPath.Trim();
}
public void OpenTerminal(string workdir)