-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsoffice.sh
executable file
·17 lines (15 loc) · 907 Bytes
/
soffice.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# Linux:
# soffice --calc --accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager"
# Mac:
# /Applications/LibreOffice.app/Contents/MacOS/soffice --calc \
# --accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager"
# Windows:
# "C:\\Program Files (x86)\LibreOffice 5\program\soffice.exe" --calc --accept="socket,host=localhost,port=2002;urp;"
# Checking for OS type and running LibreOffice Calc
case "$OSTYPE" in
darwin*) /Applications/LibreOffice.app/Contents/MacOS/soffice --calc --accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager" ;;
linux*) soffice --accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager" --norestore --nologo --nodefault;;
msys*) "C:\\Program Files (x86)\LibreOffice 5\program\soffice.exe" --calc --accept="socket,host=localhost,port=2002;urp;" ;;
*) echo "unknown: $OSTYPE" ;;
esac