Scalable icon resources don't load on Windows
Steps to reproduce
So, in rough steps (sorry, properly minimizing is a pain):
- Have a gtk application use a custom icon (I'll be using icons from Adwaita as an example)
- That icon should be vendored as gresource under
/my/application/icons/scalable/actions/view-fullscreen-symbolic.svg
- Set
/my/application
asresource_base_path
for the application - Run the application on Windows
Alternatively, you can get a zip file with an application that reproduces it from the CI build artifacts both here or there.
Current behavior
The icons load fine under Linux, but not under Windows. Windows icons load fine when provided from the icon theme, but not when vendored as resource. Also, this is explicitly about scalable icons: as you can see in the logs linked below, it scans resource directories for various resolutions but not scalable
.
Expected outcome
Linux and Windows exhibit the same behavior. I can get the icons to load under Windows.
Version information
- Gtk 4.6.3
- Compile options
- Arch Linux
- Windows 10 (in Gnome Boxes)
Additional information
Chronicles of my pain: https://discourse.gnome.org/t/getting-scalable-icons-to-load-on-windows/10004/7
Especially this post contains logs that I think might point to the root cause.