From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: Environment variables in Guix and GuixSD Date: Tue, 6 Nov 2018 12:38:34 +0100 Message-ID: References: <7d565897-cc97-6dc1-7663-8f140e1b77fd@riseup.net> <877ehq5tmq.fsf@gnu.org> 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]:60319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJzh4-0008KP-In for guix-devel@gnu.org; Tue, 06 Nov 2018 06:38:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJzh3-0004QV-QA for guix-devel@gnu.org; Tue, 06 Nov 2018 06:38:50 -0500 In-Reply-To: <877ehq5tmq.fsf@gnu.org> 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: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: Guix-devel Hello Ludo, Ludovic Court=C3=A8s ezt =C3=ADrta (id=C5=91pont: 2018. nov.= 6., K, 12:32): > > Hello, > > swedebugia skribis: > > > I noticed during my years of reading this list that difficulties > > stemming from wrong environment variables or lack of knowledge of the > > importance of these is VERY common among (new) guix users. > > > > To help everyone I wonder if it is possible for Guix to automatically > > register all these suggested changes to variables that happen after > > installing a package and check whether the user did his job of > > managing this correctly and help if not. > > Upon completion, =E2=80=98guix package=E2=80=99 tells which additional en= vironment > variables may need to be defined. There=E2=80=99s also =E2=80=98guix pac= kage > --search-paths=E2=80=99 and the generated =E2=80=98etc/profile=E2=80=99 f= ile. > I have seen in the /etc/profile file that it suggest you to do something li= ke source $GUIX_PROFILE/etc/profile. This causes problems on systems where the startup file is executed by a posix /bin/sh, as this is bash specific. Any reason not to use . $GUIX_PROFILE/etc/sh instead in that hint? (I noticed this on debian, .xsessionrc is using /bin/sh to interpret this when starting up the x session, and that defaults to dash on debian and derivatives.) > Do you think we need something in addition to this? > > I was under the impression that Guix does better than the alternatives > when it comes to environment variable settings, but of course, I=E2=80=99= m > biased. ;-) > > Thank you, > Ludo=E2=80=99. > Best regards, g_bor