unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Jesse Gibbons <jgibbons2357@gmail.com>
To: Jonathan Frederickson <jonathan@terracrypt.net>,
	Timothy Sample <samplet@ngyro.com>
Cc: help-guix@gnu.org
Subject: Re: Setting environment variables in Gnome session
Date: Wed, 28 Aug 2019 21:03:26 -0600	[thread overview]
Message-ID: <99c0f449fd4a4bd09b5267ca54e5e6df3db1c06d.camel@gmail.com> (raw)
In-Reply-To: <1567039835.10983.0@terracrypt.net>

On Wed, 2019-08-28 at 20:50 -0400, Jonathan Frederickson wrote:
> On Wed, Aug 28, 2019 at 8:40 PM, Timothy Sample <samplet@ngyro.com> 
> wrote:
> > If you use GDM and GNOME, and have Bash as your shell, you need to
> > set
> > the variables in “~/.bash_profile” or “~/.bashrc”.  Guix 
> > System sets up
> > GDM to run your X session from the your login shell (which I’m 
> > assuming
> > is Bash).  Since Guix System provides a “~/.bash_profile” file by
> > default, Bash will read this and skip “~/.profile”.
> > 
> > So if you set the variables in a Bash-specific file it should work.
> > 
> > 
> > -- Tim
> 
> Thanks, but the environment variable I'm looking to set needs to
> apply 
> to Gnome itself rather than my terminal shell. It's the search path 
> that Gnome uses to find XDG application files. I believe 
> ~/.bash_profile is only read by bash specifically?
> 
> (I've just tried adding the relevant env var to ~/.bash_profile in
> any 
> case, but it doesn't seem to have affected gnome-shell's
> environment.)
> 
> 
IIRC .bash_profile sets variables globally in the login session when
they are exported. Unless I'm mistaken, if that was not the case,
emacs-guix wouldn't be able to recognize my development packages in
$GUIX_PACKAGE_PATH when emacs is launched by gnome. Have you made sure
the variables in question have been exported?

      parent reply	other threads:[~2019-08-29  3:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-28 19:53 Setting environment variables in Gnome session Jonathan Frederickson
2019-08-28 20:58 ` Jonathan Frederickson
2019-08-29  0:40 ` Timothy Sample
2019-08-29  0:50   ` Jonathan Frederickson
2019-08-29  1:15     ` Timothy Sample
2019-08-29  4:06       ` Jonathan Frederickson
2019-08-29  3:03     ` Jesse Gibbons [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=99c0f449fd4a4bd09b5267ca54e5e6df3db1c06d.camel@gmail.com \
    --to=jgibbons2357@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=jonathan@terracrypt.net \
    --cc=samplet@ngyro.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).