fix<*>: fix .NET 4.6 Process.Start not open default browser issue

This commit is contained in:
leo 2021-01-03 20:15:28 +08:00
parent 007690b000
commit f54bf249dc
2 changed files with 4 additions and 2 deletions

View file

@ -26,7 +26,8 @@ namespace SourceGit.UI {
/// <param name="sender"></param>
/// <param name="e"></param>
private void OpenSource(object sender, RequestNavigateEventArgs e) {
Process.Start(new ProcessStartInfo("cmd", $"/c start {e.Uri.AbsoluteUri}") { CreateNoWindow = true });
Process.Start(e.Uri.AbsoluteUri);
//Process.Start(new ProcessStartInfo("cmd", $"/c start {e.Uri.AbsoluteUri}") { CreateNoWindow = true });
e.Handled = true;
}

View file

@ -32,7 +32,8 @@ namespace SourceGit.UI {
/// <param name="sender"></param>
/// <param name="e"></param>
private void Download(object sender, RoutedEventArgs e) {
Process.Start(new ProcessStartInfo("cmd", $"/c start https://gitee.com/sourcegit/SourceGit/releases/{tag}") { CreateNoWindow = true });
Process.Start($"https://gitee.com/sourcegit/SourceGit/releases/{tag}");
//Process.Start(new ProcessStartInfo("cmd", $"/c start https://gitee.com/sourcegit/SourceGit/releases/{tag}") { CreateNoWindow = true });
e.Handled = true;
}