I’m having a problem with the application icon, when the app starts, it outputs:
Gtk-WARNING **: 08:49:27.094: Failed to load icon /run/host/share/icons/hicolor/scalable/apps/io.github.otaxhu.MQTTy.Devel.svg: Error opening file /run/host/share/icons/hicolor/scalable/apps/io.github.otaxhu.MQTTy.Devel.svg: No existe el fichero o el directorio
I tested it in both flatpak and host (fedora) environments, according to documentation, the application icons are searched under ${XDG_DATA_DIRS}/icons/hicolor/scalable/apps/APPID.svg
In GTK Inspector, the XDG_DATA_DIRS env variable has this value (in flatpak):
I’m not sure, you’re correct, they’re installed correctly, and the output of XDG_DATA_DIRS is also correct, and it even works on my machine. Somehow the lookup is at the wrong place for you, but I wouldn’t know what causes that, sorry.
Solved the problem, it was a cache icon problem in a previous installation of the app I had in /usr prefix (in normal cases nobody should install any app in that prefix).
I uninstalled the app, but the cache wasn’t cleared, I guess the OS though that the icon was still there, but it wasn’t.
Just ran the command and it worked in both flatpak and host environment: