From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6MRxDqhGamFRwgAAgWs5BA (envelope-from ) for ; Sat, 16 Oct 2021 05:27:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gKQwCqhGamGWNAAAB5/wlQ (envelope-from ) for ; Sat, 16 Oct 2021 03:27:36 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 743EB26335 for ; Sat, 16 Oct 2021 05:27:35 +0200 (CEST) Received: from localhost ([::1]:53798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbaMA-0005hZ-25 for larch@yhetil.org; Fri, 15 Oct 2021 23:27:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbaLH-0005LM-Cn for emacs-orgmode@gnu.org; Fri, 15 Oct 2021 23:26:39 -0400 Received: from sonic303-20.consmr.mail.ne1.yahoo.com ([66.163.188.146]:40526) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbaLE-0004fw-Ve for emacs-orgmode@gnu.org; Fri, 15 Oct 2021 23:26:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634354794; bh=6xCoKeNIgLFLvhaesynv9c9IBG8IFAsBRsmCz8tAi/o=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=plXgGgIlYNWUGavHIzy9J44HFtyZB6vdl+dQ6C1wfD3t9iVzzKtbeGadT6O5AMZYfJF06UjYoWNkI7ioo3dpWU8F8KEW0DGrHCetM5kGA7VAIzj/8Yg/gSlJjCvjeJDhBAyPyEAjpdyVpVHoOSIU0eIypTWvoM0Io2Ph5+5FW+ARcTmws9UGNimvm0rcm9xeIHDlx/6zTxnIU6Ogg3aodnuZ0XJKKBKOb3suQYcDKwwRmUOFw0A399Ea4cJMsptXGJuOwPo7admIpb8uHgavc9DeVU8P7bJaji/d0jZazi+wryDAnlwkG8yhrNjN3HLK6Irf5rLhH584YPpOzQfzXQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634354794; bh=s8G0zn6MG/Ub/a7A4nn/NkJLAXh2dIXR90sN7VOnGNo=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=YfKLs8uKAbAcuyA8gXasW5+Yozkk8tGW+PuTcbCnyrQxL/RBC/zCALu/dBPKNdjsHZoxaWCp5WKqdAFyM4kabud/7YSmMP0FVt7Gqu9CoKBTFWF0B5KC82dy4TmHIYTp5j8GypriRIRsiSBR7lxDJ8+dqOUA8wr44DB4wrFyKLNnk8XExx4gYhnf/aZzYmrNx/DCruHfdQpG9/w+MBnlhKscvIIM7CffQtpWdGZEvr+GSiIHiC8XbFDolpGNZWbOSCneSVH+dZ6E2UlKR1zsEKLiEos19PCryy1lW2+VuFoFKtsiChoQr6Qvksce7Z7UGmmuzhaIWbrcDMwirK6MiA== X-YMail-OSG: LAyqbwgVM1n7.ehS8KzSJmje_qshPhPjT6Ld892Mj9gHa_gi46cOrAGyQdTVYsN HQK3bjwxEp403hOeeeIfPcJCO4lm1rngMBm4czs3wcknGMBIMUGmBeZejv6VBcCYAF7f9hQSjEl0 NbPT6KojmHjtIZYrCZUEWBU2601sXsc5SCWIJL8wLyc8WQIYDf5dlV5X8Ok5_SlME_LMj.bes5Ob 1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4D3aoKf7yXCkCVBy0lApoQsTbNkKdEs5oi6eGPGIOgeK8p7be1704pUaV5Z62A 4fyDVRReUlKWnwej__nnaJPg2uXt3nMDPvmjUdshGZy3tttV_SsJeN78h18WIUhrHtDqhSMV1qyp Ns2eJQF8tJMR52Rw6mF6ufo0qs7425URN8yR1PDluX_iIABthzPvAfaaQeqVkpYIIItg1rlGOdJ8 GLCv93Z90Qlyromzk7WJyi21z895U0iLK5_ZdgdX.9iXX_7cytVhU7WLqzcc5AMcYJAmRn1nulRG bcfM.Qb5rjHH0UiZCcwqFW01vzkE8Qcpn8cR8ZtUlqE1HKbhnxdhdOTTwk5zpKBmaV0syx9AAcaO ovJc__VqX49C.XhVEVcvvyzVpqz9CVO2i.gKR6SNFa0.hlTW5wP5tjX_VdwIQKd6zxyNLC0tSfxQ 9pJa7Mx18SPkOkoxjdTrmgl6K2ezKRVq.byoPnIfnHrWHx6xq.65uajuTDQ84prABWqWJMn9wppK geIO.MHouIc1ApOFwRow1Sn0s5vJHp2O6.dNqW31bf_E5V00W63owhyeDP_aA0A8_fpUcH_9z7.0 SwSHhZvJBNK0mTRI7PWF8kUveX4PpvbsY4rwYGV3QKstMbsHmp8yzajx2CPxQMftKZRugeMWL25W spKkxuNvZccpy3iNY.sU7USV.igLmqbsQ5bT3fW8QBpFjp.lylVA56TdwGT8WWssGzogZKvBCOAb MdptXTJO0gOpM55tBzdIkhH.y708Gx8BUQWseW2n622kwHMrAmfpguU.Rbl2tbIdeSaQUk7iVO8F BjCJbi3WXTi_oTTouSrRxQfO69JC3Ib.PK7.1hBIpJvZhV8vn8Gzx_lmi_.YLEj2_0LZC5ZrsRmk g5X6Uni_n92kwNEOER13LNpePIg1fbqKG3lC.twZmxC90SvTGomuaT1dRD5At X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Sat, 16 Oct 2021 03:26:34 +0000 Date: Sat, 16 Oct 2021 03:25:40 +0000 (UTC) From: Sun Lin To: "emacs-orgmode@gnu.org" Message-ID: <388850760.3644614.1634354740816@mail.yahoo.com> Subject: Subject: [PATCH] Fix DISPLAY error on exporting org with plantuml to html MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3644613_1968899205.1634354740816" References: <388850760.3644614.1634354740816.ref@mail.yahoo.com> X-Mailer: WebService/1.1.19116 YMailNorrin Received-SPF: pass client-ip=66.163.188.146; envelope-from=sunlin7@yahoo.com; helo=sonic303-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634354856; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=6xCoKeNIgLFLvhaesynv9c9IBG8IFAsBRsmCz8tAi/o=; b=ur72w6LcH+ZddQMcPrAOKNkCUjKAaZgTzWHqW1IRQqzTtHF6lToa7pSmQcaNPLQHdnP4Uv 7QH9/ZKR0q4Jr4+goWvvdHz3eeXA0EseMCXeEQTEa6F/bpMQ2/cwADypdhVOR8xMXse7hj DC3DuSUrOAY2XmA6xAg4JCZn2ZPNSH1Qd9pKNhxK1pv39G6FifaUnxYpYPSZyPGfVtJUZa glTDq7b+xA2/J2yVlQtXSRPbB9WsiE276B8EWoyvee5ieB+u74Z0NDbc4B/kGmhXg+bKjG xEgDJdCClwDzsYW5s43TptVZ9UTeGuyo6t4ILorVsBjSckF8UhCzMhsAqPTSsQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634354856; a=rsa-sha256; cv=none; b=f0riY8Nzcu9pvr6foDiT6shm8B5hudtcDzbnr1uhwvN9SxpkI7pVn/KB7sWPht0HHjBFBf KcrRg+CwFDgDfCzbZn56AAjONcaKs16Ved78PQQwOPPHtaNgJILFPrxy6fXCuhkVgN/LWW j7yTVZx41Kmm8d/2eENva3JwqD0/mtC8RChivlGjx65Tz2JD7rPJPZBfZGeNNzZlOci5Cc OQXmw1VuNGPymWz8Zk+ca63Trz/0ot5K3EWuhybo2A2PX4U5zsTpH8XGxi4OlaTsSqjGLD ZvLcxl6EV/pYz8TgUvDEMmvfaBLVQVqpNurN0Plwpao6TR/XfAWKndrr6D1bPQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=yahoo.com header.s=s2048 header.b=plXgGgIl; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=yahoo.com header.s=s2048 header.b=plXgGgIl; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 743EB26335 X-Spam-Score: -2.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0dnBheyAmW0I ------=_Part_3644613_1968899205.1634354740816 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, When the environment variable "DISPLAY" is invalid, exporting plantuml bloc= k in org will got error message: Exception in thread "main" java.awt.AWTError: Can't connect to X11 window s= erver using 'localhost:11.0' as the value of the DISPLAY variable. =C2=A0=C2=A0=C2=A0=C2=A0at sun.awt.X11GraphicsEnvironment.initDisplay(Nativ= e Method) ... To reproduce this issue, install the plantuml.jar and make sure it work ins= ide org-mode. Then open `/tmp/testing.org` and=C2=A0 input follow plantuml code and eval-= expression `(progn (setenv "DISPLAY" "localhost:90")(org-html-export-to-htm= l))`. 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 unnecess= ary. (For standalone plantuml, `org-plantuml-executable-args` has default value = '-headless' to avoid reading DISPLAY). Please help review the patch. Thanks. Best Regards Lin ------=_Part_3644613_1968899205.1634354740816 Content-Type: text/x-patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="=?UTF-8?b?MDAwMS1GaXgtRElTUExBWS1lcnJvci1vbi1leHBvcnRpbmctb3JnLXdpdGgtcGxhbnR1bWwtdG8tLnBhdGNo?=" Content-ID: RnJvbSA1ZTA0YTgwMDY5MWIwNGVkZDk0MGRkMTI0OTg3MzM2ZjZmMzBkZDYyIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBMaW4gU3VuIDxsaW4uc3VuQHpvb20udXM+CkRhdGU6IFNhdCwg MTYgT2N0IDIwMjEgMDM6MDE6MTggKzAwMDAKU3ViamVjdDogW1BBVENIXSBGaXggRElTUExBWSBl cnJvciBvbiBleHBvcnRpbmcgb3JnIHdpdGggcGxhbnR1bWwgdG8gaHRtbAoKKiBvcmctYmFiZWwt ZXhlY3V0ZTpwbGFudHVtbDogdXNpbmcgaGVhZGxlc3MgbW9kZSBmb3Igb3JnIGNhbGxpbmcgcGxh bnR1bWwgZm9yIGV4cG9ydGluZyB0by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