Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
75a71226
Commit
75a71226
authored
8 years ago
by
Laurent Destailleur
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #6523 from camlafit/patch-1
Run soffice in background
parents
ebe552ea
67189fa6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/odt2pdf/odt2pdf.sh
+4
-1
4 additions, 1 deletion
scripts/odt2pdf/odt2pdf.sh
with
4 additions
and
1 deletion
scripts/odt2pdf/odt2pdf.sh
+
4
−
1
View file @
75a71226
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment