Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions glib/hardcoded-paths.diff
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/gio/xdgmime/xdgmime.c b/gio/xdgmime/xdgmime.c
index 2446d38..1042df2 100644
index 0909581eb..04518ad88 100644
--- a/gio/xdgmime/xdgmime.c
+++ b/gio/xdgmime/xdgmime.c
@@ -235,7 +235,7 @@ xdg_init_dirs (void)
@@ -228,7 +228,7 @@ xdg_init_dirs (void)
xdg_data_dirs = getenv ("XDG_DATA_DIRS");

if (xdg_data_dirs == NULL)
Expand All @@ -11,11 +11,24 @@ index 2446d38..1042df2 100644

/* Work out how many dirs we’re dealing with. */
if (xdg_data_home != NULL || home != NULL)
diff --git a/girepository/girepository.c b/girepository/girepository.c
index a6a81716d..63bf2ec9e 100644
--- a/girepository/girepository.c
+++ b/girepository/girepository.c
@@ -300,6 +300,8 @@ gi_repository_init (GIRepository *repository)
typelib_dir = g_build_filename (libdir, "girepository-1.0", NULL);

g_ptr_array_add (repository->typelib_search_path, g_steal_pointer (&typelib_dir));
+
+ g_ptr_array_add (repository->typelib_search_path, g_strdup ("@@HOMEBREW_PREFIX@@/lib/girepository-1.0"));
}

repository->library_paths = g_ptr_array_new_null_terminated (1, g_free, TRUE);
diff --git a/glib/gutils.c b/glib/gutils.c
index 2e2d457..c97259b 100644
index 8628a568d..6d54f3c7f 100644
--- a/glib/gutils.c
+++ b/glib/gutils.c
@@ -2080,7 +2080,7 @@ g_build_system_data_dirs (void)
@@ -2698,7 +2698,7 @@ g_build_system_data_dirs (void)
*/
#ifndef G_OS_WIN32
if (!data_dirs || !data_dirs[0])
Expand All @@ -24,4 +37,3 @@ index 2e2d457..c97259b 100644

data_dir_vector = g_strsplit (data_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
#else