diff options
-rw-r--r-- | meta/classes/gconf.bbclass | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/meta/classes/gconf.bbclass b/meta/classes/gconf.bbclass index 7a3ee3c28c..38097bc37a 100644 --- a/meta/classes/gconf.bbclass +++ b/meta/classes/gconf.bbclass | |||
@@ -15,13 +15,16 @@ export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL = "1" | |||
15 | 15 | ||
16 | gconf_postinst() { | 16 | gconf_postinst() { |
17 | if [ "x$D" != "x" ]; then | 17 | if [ "x$D" != "x" ]; then |
18 | exit 1 | 18 | export GCONF_BACKEND_DIR=${STAGING_LIBDIR_NATIVE}/GConf/2 |
19 | export GCONF_CONFIG_SOURCE="xml::$D${sysconfdir}/gconf/gconf.xml.defaults" | ||
20 | else | ||
21 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` | ||
19 | fi | 22 | fi |
20 | SCHEMA_LOCATION=/etc/gconf/schemas | 23 | |
24 | SCHEMA_LOCATION=$D/etc/gconf/schemas | ||
21 | for SCHEMA in ${SCHEMA_FILES}; do | 25 | for SCHEMA in ${SCHEMA_FILES}; do |
22 | if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then | 26 | if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then |
23 | HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \ | 27 | HOME=$D/root gconftool-2 \ |
24 | gconftool-2 \ | ||
25 | --makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null | 28 | --makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null |
26 | fi | 29 | fi |
27 | done | 30 | done |