Hi Timothy,

The commit f9dcc3d was overridden by the commit b5f0efc.

This patch will re-submit the solution based on the last rev.

Please help review and merge the patch. Thanks

B.R.
Lin
From 6512e94806a4c08f40e6796e239ad2b318f7fbc5 Mon Sep 17 00:00:00 2001
From: Lin Sun <lin....@zoom.us>
Date: Tue, 7 Jun 2022 04:06:06 +0000
Subject: [PATCH] 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.
---
 lisp/ob-plantuml.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/ob-plantuml.el b/lisp/ob-plantuml.el
index 6e1b1b1..37a631b 100644
--- a/lisp/ob-plantuml.el
+++ b/lisp/ob-plantuml.el
@@ -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 `(,java
+                                     "-Djava.awt.headless=true"
 				     "-jar"
 				     ,(shell-quote-argument (expand-file-name org-plantuml-jar-path))
                                      ,@org-plantuml-args))))
-- 
2.7.0

Reply via email to