emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subject: [PATCH] Fix DISPLAY error on exporting org with plantuml to


From: Dr. Arne Babenhauserheide
Subject: Re: Subject: [PATCH] Fix DISPLAY error on exporting org with plantuml to html
Date: Tue, 07 Jun 2022 08:34:24 +0200
User-agent: mu4e 1.6.10; emacs 28.1

Hi Lin Sun,

lin Sun via "General discussions about Org-mode." <emacs-orgmode@gnu.org> 
writes:
> This patch will re-submit the solution based on the last rev.
>
> Please help review and merge the patch. Thanks 
>
> [4. text/x-patch; 
> 0001-ob-plantuml-fix-DISPLAY-error-with-html-export.patch]...
> 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"

This looks good and low-risk to me.

>                                    "-jar"
>                                    ,(shell-quote-argument (expand-file-name 
> org-plantuml-jar-path))
>                                       ,@org-plantuml-args))))
> -- 
> 2.7.0

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]