From what I understand from the Gio.Resource documentation, it is possible to use the G_RESOURCE_OVERLAYS
environment variable to avoid having to install resources when developing/testing a program.
According to the documentation, you can replace the path where it searches for resources, but I can’t get it to work.
I’m testing with World / Design Tooling / Icon Library · GitLab where by the code, the resources are searched in /usr/local/share/icon-library/
, then I set the environment variable export G_RESOURCE_OVERLAYS="/usr/local/share/icon-library=<my-path>/icon-library/build/data
where ‘build’ is the folder where the program is compiled (with meson), but I get an error:
Could not load resources: Error { domain: g-file-error-quark, code: 4, message: "Failed to open file “/usr/local/share/icon-library/resources.gresource”: open() failed: No such file or directory" }
Am I misinterpreting the use of the environment variable or is it declared incorrectly? THANK YOU.