Contents of /trunk/openoffice/ooffice-wrapper
Parent Directory
|
Revision Log
Revision 1014 -
(show annotations)
(download)
Wed Mar 10 23:58:23 2010 UTC (14 years, 2 months ago) by niro
File size: 645 byte(s)
Wed Mar 10 23:58:23 2010 UTC (14 years, 2 months ago) by niro
File size: 645 byte(s)
-fixed wrapper to work with >=00o3.2
1 | #!/bin/sh |
2 | # Wrapper script for openoffice |
3 | |
4 | OO_PVER=<pver> |
5 | OO_HOME="/opt/openoffice-${OO_PVER}" |
6 | |
7 | export OOO_EXTRA_ARG='' |
8 | unset PYTHONPATH |
9 | |
10 | ## |
11 | ## If no file is specified on the command line, which application to start? |
12 | ## The wrapper can be called from several links in /usr/bin |
13 | ## |
14 | if [ $# = 0 ] |
15 | then |
16 | case $(basename $0) in |
17 | oobase) set -- -base ;; |
18 | oocalc) set -- -calc ;; |
19 | oodraw) set -- -draw ;; |
20 | ooimpress) set -- -impress ;; |
21 | oomath) set -- -math ;; |
22 | ooweb) set -- -web ;; |
23 | oowriter) set -- -writer ;; |
24 | esac |
25 | fi |
26 | |
27 | case $(basename $0) in |
28 | oopadmin) exec "${OO_HOME}/program/spadmin" ;; |
29 | *) exec "${OO_HOME}/program/soffice" "$@" ;; |
30 | esac |