From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cH7CA7O+4mEeXQAAgWs5BA (envelope-from ) for ; Sat, 15 Jan 2022 13:31:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ICdsOLK+4mGtggAAG6o9tA (envelope-from ) for ; Sat, 15 Jan 2022 13:31:46 +0100 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 AA65C3BF56 for ; Sat, 15 Jan 2022 13:31:46 +0100 (CET) Received: from localhost ([::1]:53710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8iDh-0005cV-EV for larch@yhetil.org; Sat, 15 Jan 2022 07:31:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8iD7-0005cB-5O for guix-patches@gnu.org; Sat, 15 Jan 2022 07:31:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46412) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8iD0-000127-HE for guix-patches@gnu.org; Sat, 15 Jan 2022 07:31:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n8iD0-0008W7-8a for guix-patches@gnu.org; Sat, 15 Jan 2022 07:31:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53257] [PATCH] gnu: foot: expose terminfo dirs via native-search-paths Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 15 Jan 2022 12:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53257 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Florian , 53257@debbugs.gnu.org Received: via spool by 53257-submit@debbugs.gnu.org id=B53257.164224983931233 (code B ref 53257); Sat, 15 Jan 2022 12:31:02 +0000 Received: (at 53257) by debbugs.gnu.org; 15 Jan 2022 12:30:39 +0000 Received: from localhost ([127.0.0.1]:39315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8iCc-00087I-Mx for submit@debbugs.gnu.org; Sat, 15 Jan 2022 07:30:39 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:58922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8iCa-00083S-PB for 53257@debbugs.gnu.org; Sat, 15 Jan 2022 07:30:38 -0500 Received: from [172.20.10.5] ([188.188.185.222]) by laurent.telenet-ops.be with bizsmtp id j0WZ2600M4oKcDo010Wa1N; Sat, 15 Jan 2022 13:30:34 +0100 Message-ID: <148b10e3686b511178ce6fc019d3c0e42868cc45.camel@telenet.be> From: Maxime Devos Date: Sat, 15 Jan 2022 13:30:29 +0100 In-Reply-To: <87sftqlykz.fsf@tp-x230-guix.mail-host-address-is-not-set> References: <811cc55626870dbf37af3418e8effe191948541a.1642168254.git.florhizome@posteo.net> <070637a9bb8fc9a51bd39b0a2666ede537bdc949.camel@telenet.be> <87sftqlykz.fsf@tp-x230-guix.mail-host-address-is-not-set> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-ZH/pNa/jmMO59enDITbm" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1642249834; bh=4XTld6CveIKCapAFTQ8ZKFjzb853DW62/NxZUYdnFN8=; h=Subject:From:To:Date:In-Reply-To:References; b=Z0vPRAzJlx3KeVWhTCEZZ3MrYmgx1jwW4OnsvpcudO4uIcm2CR+A7oMRMjK5aU3KE XNzK2NX0GXgBDUoSUNZELK5Ri2jeteox+Ca4/kMU/AoLVWgaUkNeGrrVFiqUlZUB4B BCInD7hVQWYLizrp5YgY0Tx+bMvxI5eSy+WPkMrcofKYSXse+/kaMdTvUXoy6Gik8L aiBBmpVjTjccKVirc6K4otzJgYVkspenuBBU54UE2dyKUJDv0+33UYyCGgL6QPE82M KpNhDgQu3aQoTfn7kyE6DFR6CsGsaQqtWkwxW3XV6ZqyFGv1O4j9w2b6kW3+Uo6h06 b//D9k2dH5vug== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642249906; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=4XTld6CveIKCapAFTQ8ZKFjzb853DW62/NxZUYdnFN8=; b=eTfPL+N4KonLIlLIrMwzvgKG2TJeO0TvgKqqJIQZFT4NNAgX2rXH1YaEUS7Z8oAOCPoZ63 VAVknv5KzMMaRfoM28A47SEOIispuOATkKghZGUmEyHP6nC6hIkKO66T/jJM2wVlM5fhYg gwJbUeqL0YXxDSPLE601jAm33dhS5nugxat5p5XUzYQalgC7wVVz8yudoGasUhRJR86J7O LIPJiX/V+txtzbVKs60HD1Uzwy3iLRBIRW4vhRIBlpq56JEryaaxK6Nm61k4TCHldCoMuR t6HCSOE3m1WlbhaOjngVRAJR894XPEaevRwHwXcBSLxh2KKe2KK6HUj5rONKHA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642249906; a=rsa-sha256; cv=none; b=V2PfnNxbbrGBaXb9A4w9UfzQeRoCnSlHyzZGPkeQwbq3lTvsny1S0tSX+HxBixeRjrdfBm LBTjpgKnBM9SrUAYrx89MiPCmWMStGpi85k6vxkoFu0L6bnuYnakqyiQpHLdGQmeLHNWgO XtRrrMkFbsrTuxMpuGxZfMD65CxMaHkouJcHRtYsdG1+rGRW/4KhY0Qm0SuvNVzp+PdBh5 1EFWTHtUno7oecxP1ny+c1W9/Q6ZhK42jFSqM9UOgfSPcmvW26UcznXQBLK2Fv4mBN1SRB u07iEsQcOEP51ctDkUNDcGEM1egFIJwpoMEVGJzWdFbvvSt1nKsl/+VO5uPDzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Z0vPRAzJ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.53 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Z0vPRAzJ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: AA65C3BF56 X-Spam-Score: -5.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: qIaUPTq29sMm --=-ZH/pNa/jmMO59enDITbm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Florian schreef op vr 14-01-2022 om 22:52 [+0000]: > [...] I think the basic idea here is that the following should work: $ guix shell --pure some-terminal-emulator -- some-terminal-emulator # e.g., kitty # from inside the terminal: (e.g. nano) $ ~/.config/guix/current/bin/guix shell some-terminal-app -- some-terminal-= app # Variation: run under sudo This works for kitty+nano, as you note, because kitty sets TERMINFO. It also works for kitty+'emacs -nw'. However, in some combinations things = won't work: An example you noted is kitty+sudo+'emacs -nw'. This doesn't work for me e= ither. This seems to be caused by 'sudo' clearing too much. As I understand it, t= his is only an illustrative counter-example, and not something that setting 'native-search-paths' could fix? This patch is about 'foot', so I tried running foot+nano, but that failed b= ecause I don't use wayland. Anyway, there seem to be a few options here: 1. patch the source code of 'foot' to set "TERMINFO_DIRS" or "TERMINFO" appropriately (I'm not sure about the exact difference) (or use wrap-pr= ogram in 'foot'). The benefit of this above adding search paths, is that running 'foot' directly from the store could work (somewhat niche though). It would need to be investigated whether this works for your use case o= f setting 'foot-direct' instead of 'foot-xterm'. 2. modify 'nano', 'emacs', ... to add a "TERMINFO_DIRS" search path. A benefit of this approach above adding it to terminal emulators, is that this how search paths are supposed to be used AFAIK (adding an INFOPATH, LIBRARY_PATH, CROSS_LIBRARY_PATH, CPATH, ... search path to every C library that has 'info' documentation is rather cumbersome, instead INFOPATH =E2=80=98belongs=E2=80=99 to info r= eaders, LIBRARY_PATH etc. to compilers, ...). A downside is that setting it here can be =E2=80=98too late=E2=80=99. E.g., in the "guix shell terminal" then "guix shell editor" example, the editor and terminal application are in separate profiles so guix doesn't set TERMINFO_DIRS 3. Like (2), but add it to the terminal apps instead. My order of preference: (1) > (3) > (2). Here, (3) would be a lot easier than (1) but almost as good, so maybe we could do (3) first and leave (1) for later? AFAICT It's not only 'foot' that is affected, should we do (3) for all term= inal emulators that don't do (1) like kitty? Greetings, Maxime --=-ZH/pNa/jmMO59enDITbm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYeK+ZRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7hA1AP9Fyx3ZIEl+LAkrZfXOuKIrEKcF q6MG1j2MND4DbAgIgwD9FIxhmK9jNNmJUXXTilhAsd/akYd7CmlNioRHf0Xq1gs= =1YfM -----END PGP SIGNATURE----- --=-ZH/pNa/jmMO59enDITbm--