forked from mirrors/org-mode
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:
parent
0bf211a340
commit
f9dcc3d665
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue