From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iNUtASRnTWBCBwAA0tVLHw (envelope-from ) for ; Sun, 14 Mar 2021 01:30:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kKKFOCNnTWDgNwAAbx9fmQ (envelope-from ) for ; Sun, 14 Mar 2021 01:30:11 +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 31C16194F7 for ; Sun, 14 Mar 2021 02:30:11 +0100 (CET) Received: from localhost ([::1]:48778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLFa5-0007YR-SB for larch@yhetil.org; Sat, 13 Mar 2021 20:30:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLFZv-0007YJ-4R for help-guix@gnu.org; Sat, 13 Mar 2021 20:29:59 -0500 Received: from mx1.riseup.net ([198.252.153.129]:36816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLFZt-00027I-1L for help-guix@gnu.org; Sat, 13 Mar 2021 20:29:58 -0500 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4Dyhmz1vjxzDq9S; Sat, 13 Mar 2021 17:29:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1615685395; bh=nqvAPrwgaKnXIWrsmX0Weh5gSQ2OrgNFEykRiBqcg/4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=m1C66nOY88EBbIZMqxOYW+GAVOMglLVK6ct49CrQVhowDC02lG1Say27Iu0jRuIt1 2OO9A+k48nNf+Pr9u+Mbm3r8Xg6sN3o1SCDMqxWhehLhb18yNxWMDvfmddEQxYgetr etbFZ2JchWQRsAJK2wwbRUcerVmzRBwJqIDdBPgg= X-Riseup-User-ID: D431C6D751F8203DC6EA152D264B5D279125666CAF01D8E989CE1743C4822881 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4Dyhmy27f0z5vjM; Sat, 13 Mar 2021 17:29:53 -0800 (PST) Date: Sun, 14 Mar 2021 00:49:35 +0100 From: raingloom To: Ricardo Wurmus Subject: Re: Black magic to pass around environment variables? Message-ID: <20210314004935.55ebca24@riseup.net> In-Reply-To: <87lfaro23b.fsf@elephly.net> References: <20210313043410.2366cddc@riseup.net> <87lfaro23b.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615685411; 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=gNa3RregEC7c7WNP+HWFrb+rSD/Av0nzNhY1NnWDCMU=; b=kYk0EgpBa/x3UPxpzbxoNcrEJyKafoXDU5K6Jqa93kpeOtYwhSolrffOaA1i9AQui7swOB ar0cRMNgYFaz6NCuSRhlnKZ+OimwBGKbTdhbNZKAVrmGoPlMBJ8qnoSgWZH/BU4Z+wvP6T nlqcUUh7mAFA4ImXzxsmkG1nQ+ZunEf/++CuHd09FB2uZ/dWhd2cA+VE5Wt44u8R0zwapW qyduwPkTVQaLJzCcK+no8NjykJ1ey+JYw8OljhPEmxqZemkJf+yuhRZsYztwSqGgNClllw wjUhTHfSa/Himp/k8IGWEGyK/csiL4K2EGKAnKV+g4s5rN4HMLBzanE0jyo5fQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615685411; a=rsa-sha256; cv=none; b=l6LIyCL5W+xNHqXsTnn9S7IC2oe0p86JXeEsCQcHC70t9FAvIFJCZHpOdYv91fjEKzDAKX frKp9ouHrOQJ0evLUn8NUaOXi3brIzE0b27ujs1gtT8VSSOBSWKEitdN6L9K35NgRr+O3O hHCk/MlvYwUjNFeMZ9LVqsLWvd7XlyvSFGuE0rDJDmW3hGe2a0KzZctU10NpeYn2ortV1m 1Mgtuai15CrstC9YkteI466FSKLodzPbbZmsND1b4IWai1mfb5svr5IPVOrU3afDvjEO2O B7POSB/IWMts0oJvCteVmNfOlNrl3x4KoyonoX0DRccm/GQnM6Cxn/zFR3eWZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=m1C66nOY; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=m1C66nOY; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 31C16194F7 X-Spam-Score: -2.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: v3Lo4MSUERcY On Sat, 13 Mar 2021 10:05:44 +0100 Ricardo Wurmus wrote: > raingloom writes: >=20 > > Motivation: > > xfce4-terminal runs as a terminal and doesn't propagate environment > > variables, which makes it a bit cumbersome to use it with complex > > `guix environment` setups. While an upstream fix would be nice, > > this is a general problem and one that shouldn't require special > > handling in every application. =20 >=20 > I=E2=80=99m sorry, I don=E2=80=99t understand the problem. Could you per= haps provide > an example to illustrate the issue? Sorry, I wrote that in a rather tired state. What I meant to write was: xfce4-terminal runs as a **server** and when it opens a new window, that inherits its environment from the server, not from the calling environment. What I want to do is open a new terminal from a guix environment shell that has the exact same environment variables. > What environment variables should be propagated from where to where? All of them, that's the point.