diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-01-15 09:35:27 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-01-15 09:35:27 +0000 |
commit | 4eb28b2868cfc4373c8a2b39de4b9f9bb1456846 (patch) | |
tree | 45787d617296b4cd75318796ec5bf87476fd5aa9 /desktop | |
parent | 36b570d7772d787673f73f0e3957663db5f1214c (diff) |
INTEGRATION: CWS so8s10u5_SRC680 (1.5.384); FILE MERGED
2008/01/09 12:21:09 obr 1.5.384.1: #b6639520# assume gui mode if passed a single oxt file as argument
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/scripts/unopkg.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/desktop/scripts/unopkg.sh b/desktop/scripts/unopkg.sh index a9f542326c33..256fe85aa8b2 100644 --- a/desktop/scripts/unopkg.sh +++ b/desktop/scripts/unopkg.sh @@ -5,9 +5,9 @@ # # $RCSfile: unopkg.sh,v $ # -# $Revision: 1.7 $ +# $Revision: 1.8 $ # -# last change: $Author: obo $ $Date: 2008-01-07 09:56:38 $ +# last change: $Author: rt $ $Date: 2008-01-15 10:35:27 $ # # The Contents of this file are made available subject to # the terms of GNU Lesser General Public License Version 2.1. @@ -144,6 +144,10 @@ unset XENVIRONMENT PATH="$sd_prog":$PATH export PATH +# assume gui mode if passed a single oxt file as argument +GUI="" +[ $# -eq 1 -a "oxt" = "`echo $1 | cut -d . -f 2'`" -a -n "$DISPLAY" ] && GUI="gui" + # execute binary -exec "$sd_prog/$sd_binary" "$@" +exec "$sd_prog/$sd_binary" $GUI "$@" |