summaryrefslogtreecommitdiff
path: root/devel/glib2/patches/patch-ah
blob: 1e2cea8e8f64a7574886d983e3fc6ffe478ce4f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-ah,v 1.4 2006/02/25 13:31:03 wiz Exp $

--- glib/gutils.c.orig	2006-02-24 15:02:54.000000000 +0100
+++ glib/gutils.c
@@ -2399,7 +2399,7 @@ g_get_system_data_dirs (void)
       gchar *data_dirs = (gchar *) g_getenv ("XDG_DATA_DIRS");
 
       if (!data_dirs || !data_dirs[0])
-          data_dirs = "/usr/local/share/:/usr/share/";
+          data_dirs = PREFIX "/share/";
 
       data_dir_vector = g_strsplit (data_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
 #endif
@@ -2453,7 +2453,7 @@ g_get_system_config_dirs (void)
       conf_dirs = (gchar *) g_getenv ("XDG_CONFIG_DIRS");
 
       if (!conf_dirs || !conf_dirs[0])
-          conf_dirs = "/etc/xdg";
+          conf_dirs = PKG_SYSCONFDIR "/xdg";
 
       conf_dir_vector = g_strsplit (conf_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
 #endif
@@ -2534,7 +2534,7 @@ unalias_lang (char *lang)
   int i;
 
   if (!alias_table)
-    read_aliases ("/usr/share/locale/locale.alias");
+    read_aliases (PREFIX "/" PKGLOCALEDIR "/locale/locale.alias");
 
   i = 0;
   while ((p = g_hash_table_lookup (alias_table, lang)) && (strcmp (p, lang) != 0))