Skip to content

Commit f19ed4f

Browse files
authored
Minor change, so that the buttons work on linux based distros
1 parent a42a771 commit f19ed4f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

CutCode.CrossPlatform/Helpers/ButtonExts.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Diagnostics;
33
using System.Runtime.InteropServices;
44
using Avalonia;
@@ -28,9 +28,9 @@ public static void OpenUrl(string url)
2828
}
2929
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
3030
{
31-
startInfo.FileName = "xdg-open";
32-
startInfo.UseShellExecute = true;
33-
startInfo.Arguments = url;
31+
startInfo.FileName = ("xdg-open");
32+
startInfo.UseShellExecute = false;
33+
startInfo.Arguments = (url);
3434
Process.Start(startInfo);
3535
}
3636
else
@@ -65,4 +65,4 @@ static ButtonExts() => UrlProperty.Changed.Subscribe<AvaloniaPropertyChangedEven
6565
});
6666
}));
6767
}
68-
}
68+
}

0 commit comments

Comments
 (0)