summaryrefslogtreecommitdiff
path: root/misc/ibus/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'misc/ibus/doinst.sh')
-rw-r--r--misc/ibus/doinst.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/misc/ibus/doinst.sh b/misc/ibus/doinst.sh
index d41d97e260..0b35924e3b 100644
--- a/misc/ibus/doinst.sh
+++ b/misc/ibus/doinst.sh
@@ -25,9 +25,15 @@ preserve_perms() {
preserve_perms etc/profile.d/ibus.sh.new
preserve_perms etc/profile.d/ibus.csh.new
-GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \
-chroot . gconftool-2 --makefile-install-rule \
- /etc/gconf/schemas/ibus.schemas 1>/dev/null
+schema_install() {
+ GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \
+ chroot . gconftool-2 --makefile-install-rule "$1" 1>/dev/null
+}
+
+SCHEMA_FILE="/etc/gconf/schemas/ibus.schemas"
+if [ -r "$SCHEMA_FILE" ]; then
+ schema_install "$SCHEMA_FILE"
+fi
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1