#!/bin/bash
. findwine
if [ -e "$HOME/.wine/c/Programme/SplashKiller/SplashKillerRunner.exe" ] && [ "$WINEVER" != "20050111" ] && [ "$WINEVER" != "20050310" ]; then
  $WINE "c:\Programme\SplashKiller\SplashKillerRunner.exe" &
  spkr=$!
  sleep 1s
fi

if [ -e "$HOME/.wine/c/Program Files/MSOffice/Schedule/SCHDPL32.EXE" ]; then
  $WINE "c:\\program files\\msoffice\\schedule\\SCHDPL32.EXE" ${PARAM:+"$PARAM"} &>/dev/null &
elif [ -e "$HOME/.wine/c/MSOffice/Schedule/SCHDPL32.EXE" ]; then
  $WINE "c:\\msoffice\\schedule\\SCHDPL32.EXE" ${PARAM:+"$PARAM"} &>/dev/null &
fi

sleep 10s
[ "$spkr" = "" ] || kill "$spkr"

wait $!
exit 0

