From: "Ludovic Courtès" <ludo@gnu.org>
To: Lars-Dominik Braun <ldb@leibniz-psychology.org>
Cc: 43034-done@debbugs.gnu.org
Subject: bug#43034: [PATCH] environment: Set USER and LOGNAME in container
Date: Sun, 30 Aug 2020 23:54:26 +0200 [thread overview]
Message-ID: <87tuwjg5pp.fsf@gnu.org> (raw)
In-Reply-To: <20200825085824.GA3150@zpidnp36> (Lars-Dominik Braun's message of "Tue, 25 Aug 2020 10:58:24 +0200")
Hi Lars,
Lars-Dominik Braun <ldb@leibniz-psychology.org> skribis:
> From 516fecf81c980a020906533cd5135c6a7603a0a1 Mon Sep 17 00:00:00 2001
> From: Lars-Dominik Braun <ldb@leibniz-psychology.org>
> Date: Tue, 25 Aug 2020 10:52:21 +0200
> Subject: [PATCH] environment: Set USER and LOGNAME in container
>
> * guix/scripts/environment.scm (launch-environment/container): Set
> username environment variables.
Applied!
> ;; The same variables as in Nix's 'build.cc'.
> '("TMPDIR" "TEMPDIR" "TMP" "TEMP"))
>
> + ;; Some programs expect USER and/or LOGNAME to be set.
> + (setenv "LOGNAME" logname)
> + (setenv "USER" logname)
I was hesitant because so far we were more or less following the set of
variables exported by the daemon (see nix/libstore/build.cc), but there
were already exceptions (HOME, GUIX_ENVIRONMENT, PS1), and I think
making ‘guix environment -C’ more convenient is what matters.
Thanks,
Ludo’.
prev parent reply other threads:[~2020-08-30 21:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-25 8:58 [bug#43034] [PATCH] environment: Set USER and LOGNAME in container Lars-Dominik Braun
2020-08-30 21:54 ` Ludovic Courtès [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=87tuwjg5pp.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=43034-done@debbugs.gnu.org \
--cc=ldb@leibniz-psychology.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).