Skip to content

Commit

Permalink
Merge pull request #107 from sharov-am/master
Browse files Browse the repository at this point in the history
fix browser open on windows machine (at least win8.1)
  • Loading branch information
gosha20777 authored May 22, 2020
2 parents 88ea0a8 + 2987c22 commit 63b182e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ViewModels/AboutViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ private void OpenUrl(string url)
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
Process.Start("cmd", $"/C start {url}");
//https://stackoverflow.com/a/2796367/241446
using (Process proc = new Process {StartInfo = {UseShellExecute = true, FileName = url}})
{
proc.Start();
}
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{
Expand Down

0 comments on commit 63b182e

Please sign in to comment.