Lines 1-20
Link Here
|
1 |
--- glib/gutils.c.orig Wed Mar 23 09:55:02 2005 |
1 |
--- glib/gutils.c.orig 2018-09-21 09:29:23 UTC |
2 |
+++ glib/gutils.c Thu Apr 7 01:06:16 2005 |
2 |
+++ glib/gutils.c |
3 |
@@ -1929,7 +1929,7 @@ g_get_system_data_dirs (void) |
3 |
@@ -2040,7 +2040,7 @@ g_get_system_data_dirs (void) |
4 |
data_dirs = (gchar *) g_getenv ("XDG_DATA_DIRS"); |
|
|
5 |
|
4 |
|
|
|
5 |
#ifndef G_OS_WIN32 |
6 |
if (!data_dirs || !data_dirs[0]) |
6 |
if (!data_dirs || !data_dirs[0]) |
7 |
- data_dirs = "/usr/local/share/:/usr/share/"; |
7 |
- data_dirs = "/usr/local/share/:/usr/share/"; |
8 |
+ data_dirs = "/usr/local/share/"; |
8 |
+ data_dirs = "%%LOCALBASE%%/share/"; |
9 |
|
9 |
|
10 |
data_dir_vector = g_strsplit (data_dirs, G_SEARCHPATH_SEPARATOR_S, 0); |
10 |
data_dir_vector = g_strsplit (data_dirs, G_SEARCHPATH_SEPARATOR_S, 0); |
11 |
#endif |
11 |
#else |
12 |
@@ -1983,7 +1983,7 @@ g_get_system_config_dirs (void) |
12 |
@@ -2116,7 +2116,7 @@ g_get_system_config_dirs (void) |
13 |
conf_dirs = (gchar *) g_getenv ("XDG_CONFIG_DIRS"); |
13 |
} |
14 |
|
14 |
#else |
15 |
if (!conf_dirs || !conf_dirs[0]) |
15 |
if (!conf_dirs || !conf_dirs[0]) |
16 |
- conf_dirs = "/etc/xdg"; |
16 |
- conf_dirs = "/etc/xdg"; |
17 |
+ conf_dirs = "/usr/local/etc/xdg:/etc/xdg"; |
17 |
+ conf_dirs = "%%LOCALBASE%%/etc/xdg:/etc/xdg"; |
18 |
|
18 |
|
19 |
conf_dir_vector = g_strsplit (conf_dirs, G_SEARCHPATH_SEPARATOR_S, 0); |
19 |
conf_dir_vector = g_strsplit (conf_dirs, G_SEARCHPATH_SEPARATOR_S, 0); |
20 |
#endif |
20 |
#endif |