glib: Fix setup hook
It was not robust against multiple matching directories, as the called function takes exactly 3 arguments.
This commit is contained in:
parent
2c1d9d8bc1
commit
770a4c7946
@ -1,9 +1,11 @@
|
|||||||
|
|
||||||
make_glib_find_gsettings_schemas() {
|
make_glib_find_gsettings_schemas() {
|
||||||
# For packages that need gschemas of other packages (e.g. empathy)
|
# For packages that need gschemas of other packages (e.g. empathy)
|
||||||
if [ -d "$1"/share/gsettings-schemas/*/glib-2.0/schemas ]; then
|
for maybe_dir in "$1"/share/gsettings-schemas/*/glib-2.0; do
|
||||||
addToSearchPath GSETTINGS_SCHEMAS_PATH "$1/share/gsettings-schemas/"*
|
if [[ -d "$maybe_dir/schemas" ]]; then
|
||||||
|
addToSearchPath GSETTINGS_SCHEMAS_PATH "$maybe_dir"
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
}
|
}
|
||||||
addEnvHooks "$hostOffset" make_glib_find_gsettings_schemas
|
addEnvHooks "$hostOffset" make_glib_find_gsettings_schemas
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user