emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Sun Lin
Subject: Subject: [PATCH] Fix DISPLAY error on exporting org with plantuml to html
Date: Mon, 18 Oct 2021 01:39:45 +0000 (UTC)

Hi Bastien,

Please help to review this patch. Thanks

Best Regards

Lin Sun

----- Forwarded Message -----

From: Sun Lin <sunlin7@yahoo.com>
To: emacs-orgmode@gnu.org <emacs-orgmode@gnu.org>
Sent: Saturday, October 16, 2021, 03:25:40 AM UTC
Subject: Subject: [PATCH] Fix DISPLAY error on exporting org with plantuml to 
html


Hi,

When the environment variable "DISPLAY" is invalid, exporting plantuml block in 
org will got error message:
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window 
server using 'localhost:11.0' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
...
To reproduce this issue, install the plantuml.jar and make sure it work inside 
org-mode.
Then open `/tmp/testing.org` and  input follow plantuml code and 
eval-expression `(progn (setenv "DISPLAY" 
"localhost:90")(org-html-export-to-html))`.
The root cause is org-mord execute the plantuml.jar in command line without 
headless parameter, then plantuml will try read the DISPLAY, it's unnecessary.
(For standalone plantuml, `org-plantuml-executable-args` has default value 
'-headless' to avoid reading DISPLAY).

Please help review the patch. Thanks.

Best Regards
Lin

Attachment: 0001-Fix-DISPLAY-error-on-exporting-org-with-plantuml-to-.patch
Description: Text Data


reply via email to

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