Merge pull request #6523 from camlafit/patch-1
Run soffice in background
This commit is contained in:
commit
75a7122667
@ -17,13 +17,16 @@ then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
soffice="/usr/bin/soffice"
|
||||||
|
home_java="/tmp"
|
||||||
|
|
||||||
if [ -f "$1.odt" ]
|
if [ -f "$1.odt" ]
|
||||||
then
|
then
|
||||||
nbprocess=$(pgrep -c soffice)
|
nbprocess=$(pgrep -c soffice)
|
||||||
if [ $nbprocess -ne 1 ] # If there is some soffice process running
|
if [ $nbprocess -ne 1 ] # If there is some soffice process running
|
||||||
then
|
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=$?
|
retcode=$?
|
||||||
if [ $retcode -ne 0 ]
|
if [ $retcode -ne 0 ]
|
||||||
then
|
then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user