-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0002-xdg-path.patch
37 lines (31 loc) · 1.1 KB
/
0002-xdg-path.patch
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
32
33
34
35
36
37
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ikey Doherty <[email protected]>
Date: Mon, 13 Apr 2015 16:27:29 +0100
Subject: [PATCH] xdg-path
Signed-off-by: Ikey Doherty <[email protected]>
---
glib/gutils.c | 2 +-
glib/tests/utils.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/glib/gutils.c b/glib/gutils.c
index dad1625..3ee30a2 100644
--- a/glib/gutils.c
+++ b/glib/gutils.c
@@ -2683,7 +2683,7 @@ g_build_system_config_dirs (void)
}
#else
if (!conf_dirs || !conf_dirs[0])
- conf_dirs = "/etc/xdg";
+ conf_dirs = "/usr/share/xdg" G_SEARCHPATH_SEPARATOR_S "/etc/xdg";
conf_dir_vector = g_strsplit (conf_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
#endif
diff --git a/glib/tests/utils.c b/glib/tests/utils.c
index 2c5d16c..5fc3634 100644
--- a/glib/tests/utils.c
+++ b/glib/tests/utils.c
@@ -697,7 +697,7 @@ test_xdg_dirs (void)
xdg = (gchar *)g_getenv ("XDG_CONFIG_DIRS");
if (!xdg)
- xdg = "/etc/xdg";
+ xdg = "/usr/share/xdg" G_SEARCHPATH_SEPARATOR_S "/etc/xdg";
dirs = g_get_system_config_dirs ();