diff options
Diffstat (limited to 'meta/recipes-gnome/gnome/gconf/create_config_directory.patch')
-rw-r--r-- | meta/recipes-gnome/gnome/gconf/create_config_directory.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gnome/gconf/create_config_directory.patch b/meta/recipes-gnome/gnome/gconf/create_config_directory.patch new file mode 100644 index 0000000000..cd72e739b0 --- /dev/null +++ b/meta/recipes-gnome/gnome/gconf/create_config_directory.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | In some circumstances, gconf isn't able to save configurations | ||
4 | because ~/.config folder aka root_dir doesn't exist. | ||
5 | This issue was not seen before because ~/.config directory is shared | ||
6 | between several packages and one of those packages usually creates it | ||
7 | by the time gconf wants to use it. | ||
8 | |||
9 | This patch makes sure that gconf creates the .config directory if it | ||
10 | doesn't exist, along with the gconf directory inside it. | ||
11 | |||
12 | Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com> | ||
13 | Signed-off-by: Alejandro Hernandez <alejandr@xilinx.com> | ||
14 | |||
15 | |||
16 | Index: GConf-3.2.6/backends/markup-backend.c | ||
17 | =================================================================== | ||
18 | --- GConf-3.2.6.orig/backends/markup-backend.c | ||
19 | +++ GConf-3.2.6/backends/markup-backend.c | ||
20 | @@ -276,7 +276,7 @@ resolve_address (const char *address, | ||
21 | /* dir_mode without search bits */ | ||
22 | file_mode = dir_mode & (~0111); | ||
23 | } | ||
24 | - else if (g_mkdir (root_dir, dir_mode) < 0) | ||
25 | + else if (g_mkdir_with_parents (root_dir, dir_mode) < 0) | ||
26 | { | ||
27 | /* Error out even on EEXIST - shouldn't happen anyway */ | ||
28 | gconf_set_error (err, GCONF_ERROR_FAILED, | ||