File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using System ;
1+ using System ;
22using System . Diagnostics ;
33using System . Runtime . InteropServices ;
44using 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+ }
Original file line number Diff line number Diff line change 1- using System ;
1+ using System ;
22using System . Diagnostics ;
33using Avalonia ;
4+ using Avalonia . Logging ;
45using Avalonia . Controls . ApplicationLifetimes ;
56using Avalonia . ReactiveUI ;
67namespace CutCode . CrossPlatform
@@ -23,7 +24,7 @@ public static void Main(string[] args)
2324 public static AppBuilder BuildAvaloniaApp ( )
2425 => AppBuilder . Configure < App > ( )
2526 . UsePlatformDetect ( )
26- . LogToTrace ( )
27+ . LogToTrace ( level : LogEventLevel . Information )
2728 . UseReactiveUI ( ) ;
2829 }
2930}
You can’t perform that action at this time.
0 commit comments