ob-plantuml: fix DISPLAY error with html export

* lisp/ob-plantuml.el (org-babel-execute:plantuml): Use headless mode
for Org calling plantuml for exporting to html to avoid issues with
operations that normally try to access the system graphics stack.
This commit is contained in:
Sun Lin 2021-10-16 03:25:40 +00:00 committed by TEC
parent 0bf211a340
commit f9dcc3d665
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 1 additions and 0 deletions

View File

@ -122,6 +122,7 @@ This function is called by `org-babel-execute-src-block'."
((not (file-exists-p org-plantuml-jar-path))
(error "Could not find plantuml.jar at %s" org-plantuml-jar-path))
(t (list java
"-Djava.awt.headless=true"
"-jar"
(shell-quote-argument (expand-file-name org-plantuml-jar-path))))))
(full-body (org-babel-plantuml-make-body body params))