--- gio/xdgmime/xdgmime.c.orig	2019-01-21 07:38:50.000000000 -0600
+++ gio/xdgmime/xdgmime.c	2019-01-30 10:33:48.000000000 -0600
@@ -235,7 +235,7 @@
   xdg_data_dirs = getenv ("XDG_DATA_DIRS");
 
   if (xdg_data_dirs == NULL)
-    xdg_data_dirs = "/usr/local/share/:/usr/share/";
+    xdg_data_dirs = "@PREFIX@/share/:/usr/share/";
 
   /* Work out how many dirs we’re dealing with. */
   if (xdg_data_home != NULL || home != NULL)
