#!/bin/sh
# A script to run Presentations
if test ! -e $HOME/.softmaker/hunspell
then
    mkdir -p $HOME/.softmaker/hunspell/
    cp -r /usr/lib64/softmaker-freeoffice/hunspell/* $HOME/.softmaker/hunspell/
fi
ext="${@##*.}"
shopt -s nocasematch
case "$ext" in
    "prs" ) /usr/lib64/softmaker-freeoffice/presentations -S\""$@"\";;
    "pps" ) /usr/lib64/softmaker-freeoffice/presentations -S\""$@"\";;
    "ppsx" ) /usr/lib64/softmaker-freeoffice/presentations -S\""$@"\";;
    * ) /usr/lib64/softmaker-freeoffice/presentations "$@";;
esac
