summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-gconf12
-rw-r--r--autoscripts/prerm-gconf10
2 files changed, 2 insertions, 20 deletions
diff --git a/autoscripts/postinst-gconf b/autoscripts/postinst-gconf
index a0674bfd..f5e7b2bc 100644
--- a/autoscripts/postinst-gconf
+++ b/autoscripts/postinst-gconf
@@ -1,13 +1,3 @@
if [ "$1" = "configure" ]; then
- SCHEMA_LOCATION=/usr/share/gconf/schemas
- SCHEMA_FILES="#SCHEMAS#"
- for SCHEMA in $SCHEMA_FILES; do
- if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
- HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
- gconftool-2 \
- --makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
- fi
- done
-
- kill -s HUP `pidof gconfd-2` >/dev/null 2>&1 || true
+ /usr/sbin/gconf-schemas --register #SCHEMAS#
fi
diff --git a/autoscripts/prerm-gconf b/autoscripts/prerm-gconf
index cd755413..18e911ba 100644
--- a/autoscripts/prerm-gconf
+++ b/autoscripts/prerm-gconf
@@ -1,11 +1,3 @@
if [ "$1" = remove ] || [ "$1" = upgrade ]; then
- SCHEMA_LOCATION=/usr/share/gconf/schemas
- SCHEMA_FILES="#SCHEMAS#"
- for SCHEMA in $SCHEMA_FILES; do
- if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
- HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
- gconftool-2 \
- --makefile-uninstall-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
- fi
- done
+ /usr/sbin/gconf-schemas --unregister #SCHEMAS#
fi