From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Export environment variables only in `guix environment`. Date: Thu, 01 Feb 2018 00:40:39 +0100 Message-ID: <87mv0tppfs.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eh1zi-0005sg-5L for guix-devel@gnu.org; Wed, 31 Jan 2018 18:40:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eh1ze-0001nj-WB for guix-devel@gnu.org; Wed, 31 Jan 2018 18:40:46 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:39094) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eh1ze-0001nE-P1 for guix-devel@gnu.org; Wed, 31 Jan 2018 18:40:42 -0500 In-Reply-To: (Fis Trivial's message of "Mon, 29 Jan 2018 22:29:09 +0000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Fis Trivial Cc: guix-devel Hello, Fis Trivial skribis: > * Problem > The exported environment variables can cause various problems in foreign > distribution(1)(2). And besides, The long list of environment variables(4) > injected into user's login shell makes the user's environment impure. > So, I believe that if I want to run guix safely on a foreign distribution= s, I > need to eliminate the need for exporting environment variables from guix = to my > login shell. Can you clarify what problems you are facing? I remember one problematic case on foreign distros, that of XDG_DATA_DIRS: https://bugs.gnu.org/26202 The environment variable settings that =E2=80=98guix package=E2=80=99 produ= ces are here to ensure that software installed with Guix will work as expected. Ignoring them wholesale (=C3=A0 la Nix) doesn=E2=80=99t sound like a good i= dea. :-) Thanks, Ludo=E2=80=99.