Sophie

Sophie

distrib > Fedora > 19 > i386 > by-pkgid > f921143a3aadf0394c82d46ffcb5947f > scriptlet

ibus-1.5.7-6.fc19.i686.rpm

POSTIN

/bin/sh
# recreate icon cache
touch --no-create /usr/share/icons/hicolor &>/dev/null || :

/usr/sbin/alternatives --install /etc/X11/xinit/xinputrc xinputrc /etc/X11/xinit/xinput.d/ibus.conf 83 || :

POSTUN

/bin/sh
if [ "$1" -eq 0 ]; then
  # recreate icon cache
  touch --no-create /usr/share/icons/hicolor &>/dev/null || :
  gtk-update-icon-cache /usr/share/icons/hicolor &>/dev/null || :

  /usr/sbin/alternatives --remove xinputrc /etc/X11/xinit/xinput.d/ibus.conf || :
  # if alternative was set to manual, reset to auto
  [ -L /etc/alternatives/xinputrc -a "`readlink /etc/alternatives/xinputrc`" = "/etc/X11/xinit/xinput.d/ibus.conf" ] && /usr/sbin/alternatives --auto xinputrc || :

  glib-compile-schemas /usr/share/glib-2.0/schemas &>/dev/null || :
  # 'dconf update' sometimes does not update the db...
  dconf update || :
  [ -f /etc/dconf/db/ibus ] && \
      rm /etc/dconf/db/ibus || :
  # 'ibus write-cache --system' updates the system cache.
  [ -f /var/cache/ibus/bus/registry ] && \
      rm /var/cache/ibus/bus/registry || :
fi

POSTTRANS

/bin/sh
gtk-update-icon-cache /usr/share/icons/hicolor &>/dev/null || :
glib-compile-schemas /usr/share/glib-2.0/schemas &>/dev/null || :
dconf update || :
[ -x /usr/bin/ibus ] && \
  /usr/bin/ibus write-cache --system &>/dev/null || :