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 a42a771 commit f19ed4fCopy full SHA for f19ed4f
1 file changed
CutCode.CrossPlatform/Helpers/ButtonExts.cs
@@ -1,4 +1,4 @@
1
-using System;
+using System;
2
using System.Diagnostics;
3
using System.Runtime.InteropServices;
4
using Avalonia;
@@ -28,9 +28,9 @@ public static void OpenUrl(string url)
28
}
29
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
30
{
31
- startInfo.FileName = "xdg-open";
32
- startInfo.UseShellExecute = true;
33
- startInfo.Arguments = url;
+ startInfo.FileName = ("xdg-open");
+ startInfo.UseShellExecute = false;
+ startInfo.Arguments = (url);
34
Process.Start(startInfo);
35
36
else
@@ -65,4 +65,4 @@ static ButtonExts() => UrlProperty.Changed.Subscribe<AvaloniaPropertyChangedEven
65
});
66
}));
67
68
-}
+}
0 commit comments