Skip to content
Snippets Groups Projects
Commit 75a71226 authored by Laurent Destailleur's avatar Laurent Destailleur Committed by GitHub
Browse files

Merge pull request #6523 from camlafit/patch-1

Run soffice in background
parents ebe552ea 67189fa6
No related branches found
No related tags found
No related merge requests found
......@@ -17,13 +17,16 @@ then
exit
fi
soffice="/usr/bin/soffice"
home_java="/tmp"
if [ -f "$1.odt" ]
then
nbprocess=$(pgrep -c soffice)
if [ $nbprocess -ne 1 ] # If there is some soffice process running
then
soffice --invisible --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard --headless &
cmd="$soffice --invisible --accept=socket,host=127.0.0.1,port=8100;urp; --nofirststartwizard --headless -env:UserInstallation=file:///$home_java/"
export HOME=$home_java && cd $home_java && $cmd&
retcode=$?
if [ $retcode -ne 0 ]
then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment