Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there not work in Linux(Manjaro) #13

Closed
afunc233 opened this issue May 27, 2023 · 1 comment
Closed

there not work in Linux(Manjaro) #13

afunc233 opened this issue May 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@afunc233
Copy link
Contributor

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)

@afunc233
Copy link
Contributor Author

or other better way ?

@SKProCH SKProCH added the bug Something isn't working label May 27, 2023
@SKProCH SKProCH closed this as completed May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants