#!/bin/sh # Wrapper script for openoffice OO_PVER= OO_HOME="/opt/openoffice-${OO_PVER}" export OOO_EXTRA_ARG='' unset PYTHONPATH ## ## If no file is specified on the command line, which application to start? ## The wrapper can be called from several links in /usr/bin ## if [ $# = 0 ] then case $(basename $0) in oobase) set -- -base ;; oocalc) set -- -calc ;; oodraw) set -- -draw ;; ooimpress) set -- -impress ;; oomath) set -- -math ;; ooweb) set -- -web ;; oowriter) set -- -writer ;; esac fi case $(basename $0) in oopadmin) exec "${OO_HOME}/program/spadmin" ;; *) exec "${OO_HOME}/program/soffice" "$@" ;; esac