emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: lin Sun via "General discussions about Org-mode." <emacs-orgmode@gnu.org>
To: Timothy <tecosaur@gmail.com>, yantar92@gmail.com
Cc: "marcowahlsoft@gmail.com" <marcowahlsoft@gmail.com>,
	Bastien Guerry <bzg@gnu.org>,
	 "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Subject: [PATCH] Fix DISPLAY error on exporting org with plantuml to html
Date: Tue, 7 Jun 2022 05:48:01 +0000	[thread overview]
Message-ID: <CABCREdpPK0kARbigXDmuxQ+Hjgc5+QeErSdjvCaSFyV1iU0Zxw@mail.gmail.com> (raw)
In-Reply-To: <115088871.6596146.1638252307206@mail.yahoo.com>


[-- Attachment #1.1: Type: text/plain, Size: 191 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 362 bytes --]

[-- Attachment #2: 0001-ob-plantuml-fix-DISPLAY-error-with-html-export.patch --]
[-- Type: text/x-patch, Size: 1059 bytes --]

From 6512e94806a4c08f40e6796e239ad2b318f7fbc5 Mon Sep 17 00:00:00 2001
From: Lin Sun <lin.sun@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	other threads:[~2022-06-07  5:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <388850760.3644614.1634354740816.ref@mail.yahoo.com>
2021-10-16  3:25 ` Subject: [PATCH] Fix DISPLAY error on exporting org with plantuml to html Sun Lin
2021-10-18  1:39   ` Sun Lin
2021-10-18  5:07     ` Bastien Guerry
2021-10-20 12:02       ` Sun Lin
2021-11-18  5:42         ` Sun Lin
2021-11-18  7:38   ` Timothy
2021-11-18  7:47     ` Sun Lin
2021-11-30  1:41       ` Sun Lin
2021-11-30  4:18         ` Timothy
2021-11-30  6:05           ` Sun Lin
2022-06-07  5:48             ` lin Sun via General discussions about Org-mode. [this message]
2022-06-07  6:34               ` Dr. Arne Babenhauserheide
2022-06-07 14:49                 ` Max Nikulin
2022-06-07 15:30                 ` lin Sun
2022-06-08  1:45               ` Ihor Radchenko
2022-06-08  4:35                 ` lin Sun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABCREdpPK0kARbigXDmuxQ+Hjgc5+QeErSdjvCaSFyV1iU0Zxw@mail.gmail.com \
    --to=emacs-orgmode@gnu.org \
    --cc=bzg@gnu.org \
    --cc=marcowahlsoft@gmail.com \
    --cc=sunlin7@yahoo.com \
    --cc=tecosaur@gmail.com \
    --cc=yantar92@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).