11diff --git a/gio/xdgmime/xdgmime.c b/gio/xdgmime/xdgmime.c
2- index 2446d38..1042df2 100644
2+ index 0909581eb..04518ad88 100644
33--- a/gio/xdgmime/xdgmime.c
44+++ b/gio/xdgmime/xdgmime.c
5- @@ -235 ,7 +235 ,7 @@ xdg_init_dirs (void)
5+ @@ -228 ,7 +228 ,7 @@ xdg_init_dirs (void)
66 xdg_data_dirs = getenv ("XDG_DATA_DIRS");
77
88 if (xdg_data_dirs == NULL)
@@ -11,11 +11,24 @@ index 2446d38..1042df2 100644
1111
1212 /* Work out how many dirs we’re dealing with. */
1313 if (xdg_data_home != NULL || home != NULL)
14+ diff --git a/girepository/girepository.c b/girepository/girepository.c
15+ index a6a81716d..63bf2ec9e 100644
16+ --- a/girepository/girepository.c
17+ +++ b/girepository/girepository.c
18+ @@ -300,6 +300,8 @@ gi_repository_init (GIRepository *repository)
19+ typelib_dir = g_build_filename (libdir, "girepository-1.0", NULL);
20+
21+ g_ptr_array_add (repository->typelib_search_path, g_steal_pointer (&typelib_dir));
22+ +
23+ + g_ptr_array_add (repository->typelib_search_path, g_strdup ("@@HOMEBREW_PREFIX@@/lib/girepository-1.0"));
24+ }
25+
26+ repository->library_paths = g_ptr_array_new_null_terminated (1, g_free, TRUE);
1427diff --git a/glib/gutils.c b/glib/gutils.c
15- index 2e2d457..c97259b 100644
28+ index 8628a568d..6d54f3c7f 100644
1629--- a/glib/gutils.c
1730+++ b/glib/gutils.c
18- @@ -2080 ,7 +2080 ,7 @@ g_build_system_data_dirs (void)
31+ @@ -2698 ,7 +2698 ,7 @@ g_build_system_data_dirs (void)
1932 */
2033 #ifndef G_OS_WIN32
2134 if (!data_dirs || !data_dirs[0])
@@ -24,4 +37,3 @@ index 2e2d457..c97259b 100644
2437
2538 data_dir_vector = g_strsplit (data_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
2639 #else
27-
0 commit comments