summaryrefslogtreecommitdiff
path: root/misc/ibus/doinst.sh
diff options
context:
space:
mode:
authorGrissiom <chaos.proton@gmail.com>2010-08-10 01:26:57 +0100
committerMichiel van Wessem <michiel@slackbuilds.org>2010-08-10 01:26:57 +0100
commit7d4d482d412004a33e48be8eb89a7577b133dfe4 (patch)
treebfd9678388f1fb589cfe1206ecd0c3fe00d86e52 /misc/ibus/doinst.sh
parent114a93ebc7bd2dc5169d69499f426b3b53e094c9 (diff)
downloadslackbuilds-7d4d482d412004a33e48be8eb89a7577b133dfe4.tar.gz
misc/ibus: updated for version 1.3.7.
Signed-off-by: Michiel van Wessem <michiel@slackbuilds.org>
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