File tree Expand file tree Collapse file tree
src/Avalonia.Controls.WebView.Core/Linux Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,23 +101,13 @@ private static bool CheckAvailability()
101101 return false ;
102102 }
103103
104- if ( ! NativeLibrary . TryLoad ( "libWPEWebKit-2.0.so" , out var webkitHandle ) )
104+ if ( ! NativeLibrary . TryLoad ( "libWPEWebKit-2.0.so.1 " , out _ ) )
105105 return false ;
106- if ( ! NativeLibrary . TryLoad ( "libWPEBackend-fdo-1.0.so" , out var fdoHandle ) )
107- {
108- NativeLibrary . Free ( webkitHandle ) ;
106+ if ( ! NativeLibrary . TryLoad ( "libWPEBackend-fdo-1.0.so.1" , out _ ) )
109107 return false ;
110- }
111- if ( ! NativeLibrary . TryLoad ( "libwpe-1.0.so" , out var wpeHandle ) )
112- {
113- NativeLibrary . Free ( fdoHandle ) ;
114- NativeLibrary . Free ( webkitHandle ) ;
108+ if ( ! NativeLibrary . TryLoad ( "libwpe-1.0.so.1" , out _ ) )
115109 return false ;
116- }
117110
118- NativeLibrary . Free ( wpeHandle ) ;
119- NativeLibrary . Free ( fdoHandle ) ;
120- NativeLibrary . Free ( webkitHandle ) ;
121111 return true ;
122112 }
123113
You can’t perform that action at this time.
0 commit comments