From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: Setting environment variables (GUIX on foreign distro) Date: Tue, 7 Apr 2020 19:45:39 -0400 Message-ID: <20200407234539.GA1796@jasmine.lan> References: <92849722-89de-50b0-c564-239cbddb53e8@posteo.de> <20200406171123.GA32159@jasmine.lan> <97a2ea98-1537-fd29-d38b-372c59a20ffb@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38454) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLxub-0003hF-Bx for help-guix@gnu.org; Tue, 07 Apr 2020 19:45:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLxua-0001Eu-Ep for help-guix@gnu.org; Tue, 07 Apr 2020 19:45:45 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:35207) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jLxua-0001E4-6V for help-guix@gnu.org; Tue, 07 Apr 2020 19:45:44 -0400 Content-Disposition: inline In-Reply-To: <97a2ea98-1537-fd29-d38b-372c59a20ffb@posteo.de> 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: Zelphir Kaltstahl Cc: help-guix On Wed, Apr 08, 2020 at 01:14:40AM +0200, Zelphir Kaltstahl wrote: > 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? Check the Bash man page, section INVOCATION, and then FILES. That explains what files are used and in what situations. In short, ~/.profile or ~/.bash_profile should both work. Remember, they are for login shells, so you need to log in again to see the effect.