summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdesktop/scripts/soffice.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/desktop/scripts/soffice.sh b/desktop/scripts/soffice.sh
index a97f68d80808..b23d4522b4fa 100755
--- a/desktop/scripts/soffice.sh
+++ b/desktop/scripts/soffice.sh
@@ -165,5 +165,21 @@ if [ -n "$VALGRINDCHECK" ] ; then
exec &>valgrind.log
fi
+# do not pass the request for command line help to oosplash
+if test "$#" -eq 1; then
+ case "$1" in
+ -h | --h | --he | --hel | --help)
+ "$sd_prog/soffice.bin" -h
+ exit 0
+ ;;
+ -V | --v | --ve | --ver | --vers | --versi | --versio | --version)
+ "$sd_prog/soffice.bin" -h | head -1
+ exit 0
+ ;;
+ *)
+ ;;
+ esac
+fi
+
# oosplash does the rest: forcing pages in, javaldx etc. are
exec $VALGRINDCHECK $STRACECHECK "$sd_prog/oosplash.bin" "$@"