gir-1.0 folder not found in a custom prefix
System information
What is your operating system and version? Ubuntu 20.04
What is your version of GJS? gjs 1.64.3
If the bug is related to GNOME Shell, what is your version of GNOME Shell? Not related to GNOME Shell
Bug information
Steps to reproduce
Hi! My GJS application needs some C code that I ship as a library.
I use meson
+ gnome.generate_gir
to generate the required GObject introspection data and I also set install: true
so it gets installed in the prefix.
When the prefix used is a custom path instead of a well know path like /usr/share
, GJS is not able to find the library throwing a Unsatisfied dependency
error.
Current behaviour
The application exits with Unsatisfied dependency
error if a custom prefix is used.
Adding the prefix to XDG_DATA_DIRS
doesn't solve the problem.
Expected behaviour
GJS should be able to find the library.