]> code.ossystems Code Review - openembedded-core.git/commit
gconf: fix saving of settings when config folder doesnt exist
authorJaewon Lee <jaewon.lee@xilinx.com>
Tue, 10 Apr 2018 21:26:47 +0000 (14:26 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Apr 2018 15:55:24 +0000 (16:55 +0100)
commit4d16fa05e47ccc8425ebb085c295d7d8dca6b2e6
treeb9a98c4e1965b1f1a8cf77dc50dc5dc746ba2dd5
parentc4208f0ef0753a4615cf9dbcfb305f638b262f50
gconf: fix saving of settings when config folder doesnt exist

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]

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>
meta/recipes-gnome/gnome/gconf/create_config_directory.patch [new file with mode: 0644]
meta/recipes-gnome/gnome/gconf_3.2.6.bb