Switching to absolute paths doesn’t solve the issue, and I really don’t wanna use gresources.
It’s weird all an AppImage does is mount a file system and run the executable. The custom stylesheet, for instance, is being correctly loaded but the icons aren’t.
Could be interesting to print the current working directory when running your app, to make sure that the “data/icons” folder can be resolved relative to it.
Ok, I just tested this with gresource, and I still got the same problem. Even when the icons are bundled in a gresource they don’t render on distros like fedora and manjaro, but do render on ubuntu based distros.
I just made two additional interesting observations:
When calling the function gtk_icon_theme_has_icon(theme, “kronomi-question-symbolic”) on fedora (where the icons don’t render), it returns true.
When you open the gtk inspector (ctrl+shift+d) and you manually change the name of an icon to say folder-symbolic (all my icons starts with kronomi) it correctly renders that icon.
I noticed that linuxdeploy has a gtk plugin. I updated the repo containing the appimage; it now contains more libraries, but sadly this still doesn’t fix the issue: GitHub - zagortenay333/temp