From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zelphir Kaltstahl Subject: Re: Setting environment variables (GUIX on foreign distro) Date: Wed, 8 Apr 2020 01:14:40 +0200 Message-ID: <97a2ea98-1537-fd29-d38b-372c59a20ffb@posteo.de> References: <92849722-89de-50b0-c564-239cbddb53e8@posteo.de> <20200406171123.GA32159@jasmine.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37685) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLxQc-0006Bp-3Z for help-guix@gnu.org; Tue, 07 Apr 2020 19:14:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLxQa-0001Gg-UK for help-guix@gnu.org; Tue, 07 Apr 2020 19:14:45 -0400 Received: from mout02.posteo.de ([185.67.36.66]:37833) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jLxQa-0001E3-EU for help-guix@gnu.org; Tue, 07 Apr 2020 19:14:44 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 23EB52400FB for ; Wed, 8 Apr 2020 01:14:41 +0200 (CEST) In-Reply-To: <20200406171123.GA32159@jasmine.lan> Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: Leo Famulari Cc: help-guix I already set them in my ~/.profile, but that does not seem to work, as they are not seen when starting LyX (or perhaps any GUIX installed app?). Would setting them in ~/.bash_profile work? I thought that ~/.profile is loaded on login. I also need the variables to be visible, when I click a launcher for example, so not only when I open a terminal. Not sure bash_profile would be considered in that case? I need to try this. Thanks so far! On 4/6/20 7:11 PM, Leo Famulari wrote: > On Sun, Apr 05, 2020 at 10:49:54PM +0200, Zelphir Kaltstahl wrote: >> My question regards setting environment variables, which are considered >> by applications installed via GUIX on a foreign distro (Trisquel). What >> is the best practice to set custom environment variables? > You should set them in the typical way for your operating system and > shell. In general, you should do it in the initialization files for > login shells. If you are using Bash, use ~/.bash_profile.