From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sHjAKHp5zGC7JAEAgWs5BA (envelope-from ) for ; Fri, 18 Jun 2021 12:46:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IMPQI3p5zGAreAAAB5/wlQ (envelope-from ) for ; Fri, 18 Jun 2021 10:46:18 +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 0EC479D84 for ; Fri, 18 Jun 2021 12:46:18 +0200 (CEST) Received: from localhost ([::1]:53998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luC0u-00010T-SW for larch@yhetil.org; Fri, 18 Jun 2021 06:46:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luC0h-000107-5d for guix-patches@gnu.org; Fri, 18 Jun 2021 06:46:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44345) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1luC0g-0005aZ-0J for guix-patches@gnu.org; Fri, 18 Jun 2021 06:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1luC0f-0006OB-Vi for guix-patches@gnu.org; Fri, 18 Jun 2021 06:46:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49034] [PATCH] profiles: Add 'load-profile'. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 18 Jun 2021 10:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49034 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: 49034@debbugs.gnu.org Received: via spool by 49034-submit@debbugs.gnu.org id=B49034.162401315924550 (code B ref 49034); Fri, 18 Jun 2021 10:46:01 +0000 Received: (at 49034) by debbugs.gnu.org; 18 Jun 2021 10:45:59 +0000 Received: from localhost ([127.0.0.1]:55891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1luC0c-0006Nu-O4 for submit@debbugs.gnu.org; Fri, 18 Jun 2021 06:45:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1luC0a-0006Nh-FS for 49034@debbugs.gnu.org; Fri, 18 Jun 2021 06:45:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59048) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luC0U-0005RQ-Lv; Fri, 18 Jun 2021 06:45:51 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=53784 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luC0U-0000ah-Eb; Fri, 18 Jun 2021 06:45:50 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20210615081316.17513-1-ludo@gnu.org> Date: Fri, 18 Jun 2021 12:45:48 +0200 In-Reply-To: (Maxime Devos's message of "Wed, 16 Jun 2021 12:19:12 +0200") Message-ID: <871r8zh2n7.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624013178; 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: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; bh=WNYn5rF5fg/BSLtYAWBOUqiKS04IOKD1ntehiYbGQxI=; b=IXrfYikrG5GPb4dcTdP3aH6HoAtYUHBfoRXWGQZuiNUawuwng7PATymqLFP4PJ0/KHW+Oa IhsRveGk+IIhK9zUI8hxd7QwDrpPh5RObyk4QbUfoOWpfLhZHKejNB7qLBcJJjSBWDSlF/ EnU0iThA0dtU4oYplT9kJUXsPPcRzcU5RvO7B8J6+GyKNVZbfokx77ji9ZiRfumZUg9p2F mviUryrsqA0Oyaif4wKJ8BpggnJk6widlF+S40MMmzamQ4PPZJ/kVggkandKShYZ8KQBte 0S8+RAj7YhKzKHHI3buShUD5CSmEZv1sYIsrusBor6gEglnSHJHMJntF4h+Iag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624013178; a=rsa-sha256; cv=none; b=rGuLM8wniOGbTVccPfrR3tNqpK5lnCEdMZAjS2B6ZJ+kvxcaIju25s+nf4gJ1UP9r+F+PC MKZQQbeUFuPs+2DScq1+gSq9dxmlgdKWyldwXf4HzMPFxXWqT4Unl4T9Yi/Sd8mnBw9blM 80MgqzShkqPpYQMx20Cx1HYkuGPssFcQUASX0TzRoA7y+ZCuF8syV3jXqUPedlkD4Wuzux 2O2ZlkLGyx+JpOgP4CCMUGW95kQhEsZc9yAdE6NDdKRIx1sIiompX4gwabM/4fM3Ii60P6 AOI9ju868sBBnm+dXI0hvRRg8mymgs8ieB19fCU/wZrUO1gtaEJSDPHsu7TEjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.93 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 0EC479D84 X-Spam-Score: -2.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: IvVOXU755p6w Hi, Maxime Devos skribis: > Ludovic Court=C3=A8s schreef op di 15-06-2021 om 10:13 [+0200]: >> +(define %precious-variables >> + ;; Environment variables in the default 'load-profile' white list. >> + '("HOME" "USER" "LOGNAME" "DISPLAY" "TERM" "TZ" "PAGER")) > [...] >> -;; Protect some env vars from purification. Borrowed from nix-shell. >> -(define %precious-variables >> - '("HOME" "USER" "LOGNAME" "DISPLAY" "TERM" "TZ" "PAGER")) > > This is really a separate issue, but I don't understand why "XAUTHORITY" > isn't in the list. Without preserving XAUTHORITY, the following won't work > (at least on my desktop environment): > > guix environment --pure --ad-hoc atril -- atril stuff.pdf > # No protocol specified > # Cannot parse arguments: Cannot open display:=20 > > But the following does start atril: > guix environment --preserve=3DXAUTHORITY --pure --ad-hoc atril -- atril= stuff.pdf > # A window titled =E2=80=98Atril Document Viewer=E2=80=99 > > Could "XAUTHORITY" be added to the list? > Preserving "DISPLAY" but not "XAUTHORITY" seems rather useless to me, > at least on my desktop environment. Agreed, I=E2=80=99ll do that. Thanks, Ludo=E2=80=99.