From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QIhiDBv0MmUBNAAA9RJhRA:P1 (envelope-from ) for ; Fri, 20 Oct 2023 23:41:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QIhiDBv0MmUBNAAA9RJhRA (envelope-from ) for ; Fri, 20 Oct 2023 23:41:47 +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 61DF75C515 for ; Fri, 20 Oct 2023 23:41:44 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=rootshell.ro header.s=default header.b=FCNH1hPe; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697838107; 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=bPNqedZ0u6a119gACIhObDp/i1S8CFojq55xC8zDOD0=; b=UrRZkxXmGvk1gtzeNJjG+v14lXTDMCuoIBSjdUUViRR2YQFvVr9MPBDy3n/BwCDEYCHXc1 LI5yXd/V2djCV6lvdHf6DbToLIex4jRzfE9UfYXROZPplXhiExAxjhiDa6Trct1r0IZXfN Mh0/ezlRlNydgjEl/efsGtevoTXkAx9y761kP+TJ5fx4l8Z0F0HSlZLJMrS0aHwfEZ/9oq DnfKhz92tUaQb743+T/C5Sw7sWaMFKSPwZc1n0vrb7YE1FhqE1YNHqzfGC7JEJezElxxYq 6kEG/UruCiTihkh2Ffxyasm/d/fDoGDJw28UEKSyLb02Hocga/ghXyjeN2I/6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=rootshell.ro header.s=default header.b=FCNH1hPe; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697838107; a=rsa-sha256; cv=none; b=UwUQViEQjBTb/9o0t8U6atdID4iOCFH5tx7bT9Cy4m9UVjYAE++MnViHx4Q7EkNMeiEpRH pJhyLtWWkDKpda0ktGZz+wTKGeOdzFRuhXPaX/pZNMUIMzIFHc+ofqypbVgLnSytHbt9pT Y8RLZXLZ22j2JW9GcBoKTvGSW+w6ibYDP7JSo3z7F+WmKIpqFks84yNoRWLtVKAS7fqoUm tczY7IMKO946mpNxMiLqXPPxfLkFgxp9fyEV/s8dk1bDqsV4QnLfW4VoSEo09BegVUIDDU myOAgIS9lqQ149PoCDdQYQEG6jIYvmjBytzWtBU6YTvNfMUqdFTedV4543V86Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtxEL-0005JM-Nl; Fri, 20 Oct 2023 17:40:29 -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 1qtxEI-0005J8-Ks for emacs-orgmode@gnu.org; Fri, 20 Oct 2023 17:40:27 -0400 Received: from rootshell.ro ([82.79.32.74] helo=mail.rootshell.ro) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtxED-0004jD-Hz for emacs-orgmode@gnu.org; Fri, 20 Oct 2023 17:40:24 -0400 Received: from localhost (unknown [IPv6:2001:4091:a247:8043:5e6c:1935:876f:4b12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.rootshell.ro (Postfix) with ESMTPSA id A7FB4251BD; Sat, 21 Oct 2023 00:39:51 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rootshell.ro; s=default; t=1697837992; bh=B4Oc8aZJgmKIht0yxGm0WPOVwjv5aB3zQdzM5KvfGPk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FCNH1hPeeRuy/zP9PD8eVZaA/O5cRfllDzJXPjVRoMFQrbjJlESx6D8p3rnZD1Jlc P7qEvDYmyjC5XKhBXZ+RtzoG65JjdfczVqp4jJ0GZQ8jJBlLpexwzcGjSBkzOjjdil WgGUyGvszWpo4nHHPLReuD6Nfcq08kYlSts4eLHvaEE08J6ghNcDmpPvZEhvm/I1n2 ZM8N6q0HVX31/0Fydl3UMqdEGE+llAuud65s6DYW8AhcM9fpTFzSKz1TVjaSBLtYlw CTiGZZBFqL24tO6QMiD8YY5+y0I2c4KC6C3jLqlrnbo5oyKfPnowz0Yoo3phzqLjHH PW9Chl/PKc9jQ== Date: Fri, 20 Oct 2023 23:39:50 +0200 From: Florin Boariu To: Leo Butler Cc: "emacs-orgmode@gnu.org" Subject: Re: org-ditaa woes Message-ID: References: <87wmvhnr8b.fsf@t14.reltub.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87wmvhnr8b.fsf@t14.reltub.ca> Received-SPF: pass client-ip=82.79.32.74; envelope-from=florin.om@rootshell.ro; helo=mail.rootshell.ro 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-Spam-Score: -6.32 X-Spam-Score: -6.32 X-Migadu-Queue-Id: 61DF75C515 X-Migadu-Scanner: mx2.migadu.com X-TUID: f1/b4lT2t0iR > >Can you give us the command-line you would like to use? >That would help to fix the problem you are confronting. A "regular" one would be just simply "/usr/bin/ditaa": --- $ ditaa --help usage: java -jar ditaa.jar [OUTFILE] [-A] [-b ] [-d] [-E] [-e ] [-h] [--help] [-o] [-r] [-S] [-s ] [-T] [-t ] [-v] [-W] -A,--no-antialias Turns anti-aliasing off. ... --- For instance "ditaa diagram.txt -o diagam.png" would do exactly what one would expect: translate diagram.txt into the coresponding image. A more fancy one when using Flatpaks and container toolboxes are involved would be "flatpak-spawn". E.g. this is what it takes from within the org.gnu.emacs Flatpak sandbox to run "ditaa" in a Toolbox container (different sandbox): --- $ flatpak-spawn --host toolbox run /usr/bin/ditaa --help usage: java -jar ditaa.jar [OUTFILE] [-A] [-b ] [-d] [-E] [-e ] [-h] [--help] [-o] [-r] [-S] [-s ] [-T] [-t ] [-v] [-W] -A,--no-antialias Turns anti-aliasing off. ... --- (Note that the self-reported message says "usage: java -jar ditaa.jar...", but this really just behaves like a regular command line application.) Replying to Arne's comment: > In my current source I see [...] > > (use C-h v org-babel-ditaa-java-cmd to see the value of the java > executable — you can then customize this to use a different command) As far as I understand that part of code it still kind-of assumes that I'm using a command line of type "java -jar ditaa.jar ...", just with more flexibility in choosing which "java" command I'm using, right? I've just tried setting org-babel-ditaa-java-cmd to "/usr/bin/ditaa", and org-ditaa-jar-option to "", but now the error is something like: > /usr/bin/ditaa /orgfile/base/folder \ > /tmp/babel-0YxwcE/ditaa-NyIQwH \ > /orgfile/base/folder/network.png where "/orgfile/base/folder" is the dirname of the full path of my .org file (e.g. something like /orgfile/base/folder/file.org). So org-ditaa apparently somewhere still tries to set a work directory (or so?) after the org-ditaa-jar-option part. I'm not exactly sure which code version the current Emacs Flatpak has, and I don't know how to look (I'm not *that* much of a Flatpak nerd :-p ) But if I had to bet, I'd assume it's a fairly recent one. Cheers, Florin. PS: I'm not sure how to read this in gmane. I went to gmane.io, but all I see is a green text and two links -- a kind-of blog entry with gmane's history, and an admin interface. None of those looks like I'd be able to browse the mailing list. Apparently I need to do it via NNTP?... -- "Socks come in pairs. If you put a sock on your left foot, the other sock of the pair instantly becomes the “right sock,” no matter where it is located in the universe." -- quantum entanglement explained on /.