mirror of
https://git.yoctoproject.org/poky
synced 2026-06-21 22:53:48 +02:00
In some circumstances, gconf isn't able to save configurations because ~/.config folder aka root_dir doesn't exist. For example when saving settings using matchbox-appearance, the following error is shown: GConf Error: Configuration server couldn't be contacted: D-BUS error: Can't overwrite existing read-only value: Value for `/desktop/poky/interface/font_name' set in a read-only source at the front of your configuration path This issue was not seen before because ~/.config directory is shared between several packages and one of those packages usually creates it by the time gconf wants to use it. This patch makes sure that gconf creates the .config directory if it doesn't exist, along with the gconf directory inside it. [YOCTO #12632] (From OE-Core rev: 4d16fa05e47ccc8425ebb085c295d7d8dca6b2e6) Signed-off-by: Alejandro Hernandez <alejandr@xilinx.com> Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
Upstream-Status: Pending
|
|
|
|
In some circumstances, gconf isn't able to save configurations
|
|
because ~/.config folder aka root_dir doesn't exist.
|
|
This issue was not seen before because ~/.config directory is shared
|
|
between several packages and one of those packages usually creates it
|
|
by the time gconf wants to use it.
|
|
|
|
This patch makes sure that gconf creates the .config directory if it
|
|
doesn't exist, along with the gconf directory inside it.
|
|
|
|
Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
|
|
Signed-off-by: Alejandro Hernandez <alejandr@xilinx.com>
|
|
|
|
|
|
Index: GConf-3.2.6/backends/markup-backend.c
|
|
===================================================================
|
|
--- GConf-3.2.6.orig/backends/markup-backend.c
|
|
+++ GConf-3.2.6/backends/markup-backend.c
|
|
@@ -276,7 +276,7 @@ resolve_address (const char *address,
|
|
/* dir_mode without search bits */
|
|
file_mode = dir_mode & (~0111);
|
|
}
|
|
- else if (g_mkdir (root_dir, dir_mode) < 0)
|
|
+ else if (g_mkdir_with_parents (root_dir, dir_mode) < 0)
|
|
{
|
|
/* Error out even on EEXIST - shouldn't happen anyway */
|
|
gconf_set_error (err, GCONF_ERROR_FAILED,
|