# Install dictionary extensions for spellchecking
if [ -x "usr/lib64/ooo-3.1/program/unopkg" ]; then
  UNOPKGTMP=$TMP/$$$$$$
  if [ -f "usr/lib64/ooo-3.1/share/extension/install/dict-en.oxt" ]; then
    usr/lib64/ooo-3.1/program/unopkg add --shared --shared \
        usr/lib64/ooo-3.1/share/extension/install/dict-en.oxt \
        "-env:UserInstallation=file:///$UNOPKGTMP" 2>/dev/null 1>/dev/null
  fi;
  rm -rf $UNOPKGTMP
fi
