dpaulat / supercell-wx

Supercell Wx is a free, open source advanced weather radar viewer.
https://supercell-wx.rtfd.io
MIT License
85 stars 14 forks source link

Placefile fails to load local icon files on Linux. #238

Closed AdenKoperczak closed 3 days ago

AdenKoperczak commented 3 days ago

Describe the bug Placefiles with local icons fail to load the local icons on Linux. It also shows an error (log bellow). I believe this is because the path is passed to the file handler as a local file URI (file:///home/...). I have a fix in the works and will make a pull request.

To Reproduce On Linux Make a placefile that uses a local png file as an icon file. Add it to Supercell-WX. Will not display icons and will display error.

Expected behavior Should load the file without error

Desktop (please complete the following information):

Debug Log (if applicable):

[2024-06-29 12:20:35.924] [180033] [debug] [scwx::qt::util::texture_atlas] Loading image: file:///home/ankom/Downloads/place.png
[2024-06-29 12:20:35.924] [180033] [error] [scwx::qt::util::texture_atlas] Could not open image: file:///home/ankom/Downloads/place.png