From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4ARwLfG+MmXfXAEAauVa8A:P1 (envelope-from ) for ; Fri, 20 Oct 2023 19:54:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4ARwLfG+MmXfXAEAauVa8A (envelope-from ) for ; Fri, 20 Oct 2023 19:54:57 +0200 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 F15525BFBC for ; Fri, 20 Oct 2023 19:54:56 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umanitoba.ca header.s=selector2 header.b=fGPbT8gG; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=umanitoba.ca; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=2; s=key1; d=yhetil.org; t=1697824497; a=rsa-sha256; cv=pass; b=aew3RuIr+CfVZU1iKrvejZFyTJgxy4ezjeF1KYR8gQtFMU6Ju/tUvPRMqMK6HJI+4AiizK kb4Ytz1++yCGRIzkDeZyXtjEJNC0cdGaBUUwK+rqjyBrVcbB4i7wt0UI3oWEZlVPH8ihLQ /icLu31ufO84qxNDB49u3+zp3JNs2Zqj3DeNCC7VRSpEgLXArBGVKYGdU6ZUEUFT3O5zFi 3qR9D4W5TygGoc67FCiqHY2CVhtRYVr+WNwKmCWlDYZRZ7lMeFaZpdCRr4U8/7Qf1C7qEV z8EGFdmTFd+Q3Moe5w0pspGeRuzCj46zl6X+Q32uGw2siKHsw0y7fubOvBqkcQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=umanitoba.ca header.s=selector2 header.b=fGPbT8gG; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=umanitoba.ca; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697824497; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ilk7RgdhystrWwn9hvZU+0Q7Iuy/EpyHC/R/NlHShBY=; b=NvO9snBK4tcSXQ9UZgHptCFXjnjU3zbNMYN2dXlUI7Lyrg2Dw97I6wOZ/aIHWC0muIPJjX m6z0W3HYWWbtSO8gljViqqi8/XSH/YOhgGH6B1NrQ8R50yCb0xar9Yt3rWuL/fdvy2Zfjr p/zkNQLk+pMGx6Iv+hQGnedBynOa9+SSqMiX/2gQx8YZJQBC6dtOHNEirDfp8/FdbqcDaw GQLPbh8YeWJsVsAuAL0ItpZEF3FpVCGGzymAVtAf3L4SGLRUsDmE5k1rtlG57UrI3A3ONs araNdgmuaSffzpUza0eGgmqB1UfPDjNSWksIqog3tm3jBeMQj8jLZv3NOcWU1Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qttSe-0000M5-OE; Fri, 20 Oct 2023 13:39:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qttSd-0000JJ-6d for emacs-orgmode@gnu.org; Fri, 20 Oct 2023 13:38:59 -0400 Received: from mail-yt3can01on2071d.outbound.protection.outlook.com ([2a01:111:f403:7053::71d] helo=CAN01-YT3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qttSa-0002N8-ED for emacs-orgmode@gnu.org; Fri, 20 Oct 2023 13:38:58 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=npfATvODgCdwz07CpscQDkcb9XEZq5QA0xSZgeXP1nW7K/5Cg0s9e0wczg3+ziA1FUUSvd4z1zCQkjpEQc5hpqb1nmFEQr8NfsuW+VatUQ1HTSGmL04PQXi44PFsQWc4NnXa9Zjwazbw/tXo7T3fI/jRi3qOuCRnsMhbeCQ4fQ9dfGfmtV1XVGcefONkAx5KuUakhz9NA3NTEPLKvBlqJPWsv/7fOtY8g9VcrOiiHxSS58gOxAXNZwvMdPXvAnCXAM2cifv/00K+NRJOm+7s87ILAblgbmZkgBT3sqSWDIc+/RgtC5vBqxve+5xjt16kyxW7A77MpB7F2i+U95Jncg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ilk7RgdhystrWwn9hvZU+0Q7Iuy/EpyHC/R/NlHShBY=; b=A7HG75oCvEwiKYOzblxme9zdOnLbT0hoP8BnQNR6+WMNin18dJSE3ni4TfSEafskERHAN2O07cJYD8A+5AbXXJmFvy1Pjh7PemCohoy/4BWWEawgEMMdyLNIWUu8OzJMmOf/5V+y+e1meG/h3Bcz/TSK7QuB9Ad72/Q13ATebetUTM1guRC+x4e1/G0U9mjXUfZkXVny1AiwRc4Q3fjMfOPOZ5gy3Oit2rL/no9r3Gn0zf3SwLbf1G+Jf86T+KVV2ATbyjOUv0cbxzOpPU4adR6jeEITzmj1Fvj0e+HDDVqf/cbIFp0a8ks/DqCYn3AazTywaWoUiDuJkd99wUxh+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=umanitoba.ca; dmarc=pass action=none header.from=umanitoba.ca; dkim=pass header.d=umanitoba.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umanitoba.ca; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ilk7RgdhystrWwn9hvZU+0Q7Iuy/EpyHC/R/NlHShBY=; b=fGPbT8gG3r/NsMpTYFye6odQYAeGRMQDCm5VWh2VlalrpjPHbfrKbQNGTjCUYW0tvPGhTZgU1B5qtVIwqnuvv53yHsyZeIo6RJIsFscNDY6DXX1rneTkL6ZqNTXXEpV8Qxd9eeK+ry92E+/oNG47Pv0Ky7zhJJT1XT9ck/lqf9xPOOwWJUh58aWK3kP1w9+85w7SK1mMFJn05/XhM1P0OUJqIi4sowIGM5AkBNbpH3jgwZTGqkP2DTSQ/CHrW7nRO7nESewiTduQmvwH9iVcjg7Gd6dtmdQkrZAbkdEJjtXWpGeHlTfwaZlnea7J/ayqg0iWppGE9yHK2cydiewpLA== Received: from YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:90::5) by YT3PR01MB5430.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:62::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.26; Fri, 20 Oct 2023 17:22:45 +0000 Received: from YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM ([fe80::5855:6302:29db:a1da]) by YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM ([fe80::5855:6302:29db:a1da%4]) with mapi id 15.20.6886.034; Fri, 20 Oct 2023 17:22:45 +0000 From: Leo Butler To: Florin Boariu CC: "emacs-orgmode@gnu.org" Subject: Re: org-ditaa woes Thread-Topic: org-ditaa woes Thread-Index: AQHaA0Cd0BbNiAfuBkuDii+eDP0oYw== Date: Fri, 20 Oct 2023 17:22:45 +0000 Message-ID: <87wmvhnr8b.fsf@t14.reltub.ca> References: In-Reply-To: (Florin Boariu's message of "Thu, 19 Oct 2023 12:59:59 +0200") Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Gnus/5.13 (Gnus v5.13) x-ms-publictraffictype: Email x-ms-traffictypediagnostic: YT3PR01MB9964:EE_|YT3PR01MB5430:EE_ x-ms-office365-filtering-correlation-id: ca0bf719-c05c-4b2e-3bb0-08dbd1912c95 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: E3Buv08//XIaVtTFiE882nJaCUPtJ5jN7/qkja2b3IZ4hkJNbB0v+S0F8JFQazi6iLQ7rleNVuUUYxK2EMFacubVvxJCeSWpAwbi6HIBwW1uR3Nj37xzX9uT1ui9vPZm2U+sHiSv7Ig6qOrodt9kGaCx3GD1YXQBGy5xJglklIwDgy9zguONozVbZtlhqKzTe1CwOLuVJuhnvBXAP0erFWy2Nwr6EPCdqaMVRHhR8dgVSpVR76mGWRvgh2K+i8rqGeR+zWsOzq3fU7kiC8jn164CpVtcd/2z+HgwYEhC4IobPthEkKFihz9QiqONcTxbMkN0EMocpVKeW7FnmEwA+sXmt8h4dK86W5lnm554IsngRPK1Ay0zTcTBhcYnabpeZt2QDaXtYrTmFR0n7BURllL4njb7EmyPRJxUK0jyNGlOJCwxOr5EVW4C+LscR8PQeWxP6/U8UFDlSo3kOl3yoAKqE5hgqWE8nL0NG1deSvQdnkMN066lzrmDBnkKIcxU9vsZXrA3qN+xbLr1K0Nr5fT11CPK4peKvIgHt3fUIWhfYOGncyljOv7cfCR4EWLYVfnIIKHZEvzAZrWa8ss5OkHGQWO7Mx/Pz0h8tZMLPCg= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230031)(346002)(396003)(136003)(366004)(376002)(39860400002)(230922051799003)(451199024)(1800799009)(64100799003)(186009)(41300700001)(26005)(71200400001)(2906002)(4326008)(8676002)(86362001)(8936002)(38100700002)(3480700007)(83380400001)(122000001)(9686003)(6512007)(6506007)(5660300002)(6916009)(786003)(316002)(478600001)(38070700009)(6486002)(91956017)(76116006)(66446008)(66556008)(64756008)(66476007)(66946007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?NsprJY/ECPxHJGgtuMRW5N+HWeUaSQqrI/CVJG0GIuX27hX+uIeC/zqo9l?= =?iso-8859-1?Q?bmsgi68yUCj3WgOVJbdi616Su2sZPzv3RV61XVmEWL2K+yWLPK9UQW5ult?= =?iso-8859-1?Q?cMAoQv8tjntVyQbmDRCXKdvVT/mfJgwOZn1lDHCzw4JgbM4foeb5IzUW/2?= =?iso-8859-1?Q?3viWLt0m5jR5RGJXPvNDvaB+pZbC7oWZ8u7jeGATla113oDTOALvCCiiOc?= =?iso-8859-1?Q?zlVLoKbkcUi+EFd/a8m4+yWxftIjdEAkT/Oy2hvh8hZkgPEWH0IpXCaBTI?= =?iso-8859-1?Q?P+awrKnd90XYuqQcDMCyiPqnYahgZuVTxxPcPoi32Uu8l6I93+005efZQG?= =?iso-8859-1?Q?vntlXnr7euvp87i1/YFvexyxOJe8Eexapr2Ni1q86YbUV+octeX9zZpl8u?= =?iso-8859-1?Q?i4S+P7PZRzpD03//VCClcX5usFpZmk/4mFZNL4Xw3i9bucmczLL4gx7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b3ueMFGxIBzOUnW3w3sGG04UU57AlGThleduz?= =?iso-8859-1?Q?UA/0i94UEO2Ao27w2EWYWVjAVliwonlAhw6rLbzT7WVnqJ3WMgnL4HuVH3?= =?iso-8859-1?Q?xWJrmhzW7enmO95KPE8MIliI/76KzpL7cDaRs3Br98f9j2DgZ9yQJvxfet?= =?iso-8859-1?Q?OeAuAVni794t9HsvWkuJjPbK4ZjKuQ8BYggJAHOevmiLItU1dC3HbPYCXr?= =?iso-8859-1?Q?+PBoMy5kCmSiOQZs3eX36LjCSHpdu7Zjrx3//JXe14oIrwB+S1Tt3p/cHL?= =?iso-8859-1?Q?GgLWPHQeI/gxLMohE8eMCrZpmY5jYD86f9L4hQ0PH3ljXhjJbt3TOutg?= =?iso-8859-1?Q?=3D=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: umanitoba.ca X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: ca0bf719-c05c-4b2e-3bb0-08dbd1912c95 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Oct 2023 17:22:45.1252 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4f80dd0b-338c-4e4c-8a14-90446962f7b8 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: d6KmAXxayIxueF6+eOvJF3N2FFJA/yASwzt9IgTq+eq3hVpH6kJfjPEVhgsTcAHF2yzzTgpSSFbx0s6A9RQN2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YT3PR01MB5430 Received-SPF: pass client-ip=2a01:111:f403:7053::71d; envelope-from=Leo.Butler@umanitoba.ca; helo=CAN01-YT3-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -6.76 X-Spam-Score: -6.76 X-Migadu-Queue-Id: F15525BFBC X-TUID: fhN9586gtnWJ Hello Florin, On Thu, Oct 19 2023, Florin Boariu wrote: > Hello everyone, > > I am not on the mailing list, so I'm hoping that some kind soul with > moderator powers will have mercy and let my email through in a timely > manner :-) Also, please CC me in on the answer. (I'll happily > subscribe if you feel that I should, but this is likely to be my only > encounter with the Org-mode list, so it's probably bogus...) You can read (and post to?) this email list on gmane. > But in the source code of org-ditaa.el > (https://github.com/tkf/org-mode/blob/master/lisp/ob-ditaa.el) I can > see something like this on lines 87 ff: > >> [...] >> (cmd (concat "java " java " " org-ditaa-jar-option " " >> (shell-quote-argument >> (expand-file-name >> (if eps org-ditaa-eps-jar-path org-ditaa-jar-path))) >> " " cmdline >> " " (org-babel-process-file-name in-file) >> " " (org-babel-process-file-name out-file))) >> [...] > I think you have identified a bug in ob-ditaa.el. Your request is perfectly reasonable and that CMD should not have such hard-coded constants in it, imo. > I suck at LISP, but I'm guessing this means that there simply > is no way of just passing on a "/usr/bin/ditaa" command-line to > "org-ditaa", or at least an alternative Java command like "flatpak > spawn --host /usr/bin/java ...". Org-ditaa really *does* insist of > glueing it together from "java -jar ..." pieces, and is stubbornly > adamant on finding Java in the same FS namespace. Can you give us the command-line you would like to use? That would help to fix the problem you are confronting. > > Is there a deeper reason behind this? This pretty much breaks > Flatpak, or any other sandboxing compatibility, as far as I > understand. Can it be changed? Please? :-) The deeper reason is likely that ob-ditaa worked for whomever wrote it, and users have either accepted its limitations (if noted), worked around them, or gave up. > > How can I make it accept a command line? > > Is there any "generic" way of making org-babel accept a command line, > not necessarily going through "org-ditaa", as a workaround? You could use ob-shell, but it would be preferable to fix the bug you have identified. > > Thanks & cheers, > Florin. Leo=