[PATCH] EasyHack: soffice accepts -help/-h/-? in presence of the unix quickstart

Takeshi Abe tabe at fixedpoint.jp
Thu Dec 16 19:37:59 PST 2010


---
 desktop/scripts/soffice.sh |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/desktop/scripts/soffice.sh b/desktop/scripts/soffice.sh
index b45b6bc..4d3c92c 100644
--- a/desktop/scripts/soffice.sh
+++ b/desktop/scripts/soffice.sh
@@ -97,9 +97,11 @@ done
 
 # test for availability of the fast external splash
 for arg in $@; do
-    if [ "$arg" = "-nologo" -o "$arg" = "-no-oosplash" ]; then
-       no_oosplash=y
-    fi
+    case "$arg" in
+    -nologo|-no-oosplash|-help|-h|-\?)
+        no_oosplash=y
+        ;;
+    esac
 done
 
 # Setup our app as oosplash, but try to avoid executing pagein,
-- 
1.7.2.3


----Next_Part(Fri_Dec_17_12_44_23_2010_513)----


More information about the LibreOffice mailing list