AvaloniaUtils/AsyncImageLoader.Avalonia

there not work in Linux(Manjaro)

afunc233 opened this issue · 1 comments

if (uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) {

System.InvalidOperationException: This operation is not supported for a relative URI.
at System.Uri.get_Scheme()
at AsyncImageLoader.Loaders.BaseWebImageLoader.LoadFromInternalAsync(String url) in /home/afunc/Projects/AsyncImageLoader.Avalonia/AsyncImageLoader.Avalonia/Loaders/BaseWebImageLoader.cs:line 99

and the params url : /home/afunc/.local/share/PumpkinWindowsConfigurations/CacheImg/1806291fb70687a8b7a13df26fc705df641fed15.png

so maybe we should check the url is localfile first by use File.Exists(url)

or other better way ?