From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 931DD2C914; Thu, 19 May 2022 08:33:43 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id 931292C90E; Thu, 19 May 2022 08:33:40 +0000 (UTC) Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by atuin.qyliss.net (Postfix) with ESMTPS id E823E2C90D for ; Thu, 19 May 2022 08:33:37 +0000 (UTC) Received: by mail-lj1-x232.google.com with SMTP id i23so5373676ljb.4 for ; Thu, 19 May 2022 01:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unikie.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JLywvowGOtCBXf0WEyf5tIDXz809jlo/lxBQtzox4xk=; b=FjgBQECIeXd9uRsBy51+HJ9aMRzx96YJDk10QHqvvTpCul1bRT/Ybv69hYhB1jCY6W bicPyOVLaPDZbTVZaSPY9dwOQupFd6UCbn0Dq6s5njNGJMDfzNDGGxLy/3RsFQVula4h 773zUtNqlRa5bPNs+vzvCtmzeX3HA/mwEofBYedp32DT1wy+iaZPW9ZsdyjQEjYUVEQa gpsm8qeV+eCWnoehY54Mh8sCSBzq9ljlnMsrUf9YxTKRqBQqWHx+eJMKHNfwrUEPhPvr DfbIjm6sC5XfbhS9XEew4NtLS/X4TL7Pejo/L/8Hv54jIZ620F1uyI/GTXyh++zk3nqb ligg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JLywvowGOtCBXf0WEyf5tIDXz809jlo/lxBQtzox4xk=; b=oSOHxvtwqLYg289JyP+7o+T7JbLNnTOIA8300D1LkRQGVl0SHsGeDj9GlRi+M7eKcl Au5++StUbS2AkP0DKTpJhE1RY77PjgXBU07B0H2L/7cOfBFgaocc+DTTdoLxt5+nErWp z+YCxUdiKQ3prYx8ifjot+hKg76SaIPg5c6xZVJT0El4nW67l2t0WtyMmsmfOHSAxLGZ BZVPzUUeMwCgQrjugJgwY55PEvqoua6PJ2MhtB7B3uOgF8ietd21qWcRSe5h5jg6oY6e BSKWdKaUkwzt/f7DUEcG9AD1VeTQTd0K9EGE/IT71acJpsO5ZRoDuqKoVcTwGdu30Vtc hxOg== X-Gm-Message-State: AOAM531tEzxdo1bgROsdZ1T5dFQsKWS5oiqoBUGSBuMfzmttO6vfFdy/ AIZY5GSMjgGqCPN+o5Ap2UthV94AIRQlL7VzEjdKzQ== X-Google-Smtp-Source: ABdhPJxXsZkwiJtKE01aNwPjwHLEyo+sDNvkoiePTnlC9T5F5AeQkjU4QK7pUypAo/6L+SfQfvmg8wrbGnDZJLjyqnc= X-Received: by 2002:a2e:b8cc:0:b0:24f:501b:af80 with SMTP id s12-20020a2eb8cc000000b0024f501baf80mr2005726ljp.328.1652949215727; Thu, 19 May 2022 01:33:35 -0700 (PDT) MIME-Version: 1.0 References: <165276675569.2703.7962474952768136863@atuin.qyliss.net> <20220517122508.ioizqbm6rcpk3waw@eve> <1efedd1a-739f-4569-0d97-ff3233dc4416@ecomail.io> <20220518125353.cw4faxgab22r2jr5@eve> <20220518131137.sv7qvdy6cllwszu7@eve> <20220519073551.ws6gl4tgmkcdtba3@eve> In-Reply-To: <20220519073551.ws6gl4tgmkcdtba3@eve> From: Ville Ilvonen Date: Thu, 19 May 2022 11:33:24 +0300 Message-ID: Subject: Re: Documentation and diagrams To: Alyssa Ross Content-Type: text/plain; charset="UTF-8" Message-ID-Hash: BVD6ERGHLGT5F3YQJZ3PHEE2XU4BXYC5 X-Message-ID-Hash: BVD6ERGHLGT5F3YQJZ3PHEE2XU4BXYC5 X-MailFrom: ville.ilvonen@unikie.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-discuss.spectrum-os.org-0; header-match-discuss.spectrum-os.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Paco , discuss@spectrum-os.org X-Mailman-Version: 3.3.5 Precedence: list List-Id: General high-level discussion about Spectrum Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Thu, May 19, 2022 at 10:35 AM Alyssa Ross wrote: > > On Thu, May 19, 2022 at 10:25:16AM +0300, Ville Ilvonen wrote: > > On Wed, May 18, 2022 at 4:11 PM Alyssa Ross wrote: > > > > > Actually, this looking more closely at the stack trace, this is more > > > likely to be it not having a writeable XDG_CONFIG_HOME or HOME > > > directory. So you could try setting those to temporary directories in > > > the build. Something like > > > > > > export XDG_CONFIG_HOME="$(mktemp -d)" > > > > I think it was a good idea to test but unfortunately it did not work out: > > > > '' > > export XDG_CONFIG_HOME="$(mktemp -d)" > > echo $XDG_CONFIG_HOME > > drawio in.drawio --export --output test.svg > > jekyll build --disable-disk-cache -s $src -d $out > > '' > > I was just looking at the draw.io packaging in Nixpkgs, and I discovered > that there's already code in there for running headless draw.io! [1] > But it's not exposed outside of this pandoc filter package. I'm going > to see if it works, and if it does I'll see if we can pull it out to the > top level, as a drawio-headless package or something. > > [1] https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/pandoc-drawio-filter/default.nix I was also starting to think that the X env is required. X virtual framebuffer is a great idea. Good catch with pandoc approach to generate drawio to pdf in xvfb.