Closed lephilousophe closed 1 year ago
Thanks @lephilousophe.
Thing is, it is way easier for thumbnailers to parse/show png rather than svg. So I am not entirely sure whether we should allow svg icons. But I guess since the existing code says supportedIconExtensions := []string{".png", ".xpm", ".svg"}
I should probably merge this for now.
Maybe we should at least print a warning if if only a SVG but no PNG is found, letting the user know that a PNG should be used.
I must admit that in ScummVM we don't use a PNG on linux only a SVG icon. By looking at Icon Theme Specification, I see that SVG is optional and XPM is deprecated so, yes, warnings may be useful. I will add them.
And done.
Thanks @lephilousophe
SVGs are traditionally stored in /usr/share/icons/hicolor/scalable/apps/ so this makes sense to look up for icons in this folder too.