File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
- using System ;
1
+ using System ;
2
2
using System . Diagnostics ;
3
3
using System . Runtime . InteropServices ;
4
4
using Avalonia ;
@@ -28,9 +28,9 @@ public static void OpenUrl(string url)
28
28
}
29
29
else if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) )
30
30
{
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 ) ;
34
34
Process . Start ( startInfo ) ;
35
35
}
36
36
else
@@ -65,4 +65,4 @@ static ButtonExts() => UrlProperty.Changed.Subscribe<AvaloniaPropertyChangedEven
65
65
} ) ;
66
66
} ) ) ;
67
67
}
68
- }
68
+ }
Original file line number Diff line number Diff line change 1
- using System ;
1
+ using System ;
2
2
using System . Diagnostics ;
3
3
using Avalonia ;
4
+ using Avalonia . Logging ;
4
5
using Avalonia . Controls . ApplicationLifetimes ;
5
6
using Avalonia . ReactiveUI ;
6
7
namespace CutCode . CrossPlatform
@@ -23,7 +24,7 @@ public static void Main(string[] args)
23
24
public static AppBuilder BuildAvaloniaApp ( )
24
25
=> AppBuilder . Configure < App > ( )
25
26
. UsePlatformDetect ( )
26
- . LogToTrace ( )
27
+ . LogToTrace ( level : LogEventLevel . Information )
27
28
. UseReactiveUI ( ) ;
28
29
}
29
30
}
You can’t perform that action at this time.
0 commit comments