From: iyzsong@member.fsf.org (宋文武)
To: Jean Louis <guix@rcdrun.com>
Cc: Help Guix <help-guix@gnu.org>
Subject: Re: How to solve /etc/login.defs
Date: Thu, 10 Mar 2016 17:09:08 +0800 [thread overview]
Message-ID: <87k2lag0nf.fsf@member.fsf.org> (raw)
In-Reply-To: <20160310075733.GA28494@protected.rcdrun.com> (Jean Louis's message of "Thu, 10 Mar 2016 08:57:33 +0100")
Jean Louis <guix@rcdrun.com> writes:
> Hello,
>
> I am using guix on Debian. The default path for guix is:
> $HOME/.guix-profile/bin and sbin
>
> And I am using login manager lightdm, so the default PATH cannot be
> read. I guess, that /etc/login.defs have to be changed for each user to
> include $PATH correctly.
>
> Otherwise, how is system supposed to know that default $PATH is
> ~/.guix-profile/bin? among others?
In GuixSD, this is done by `/etc/profile' which is read by sh-compatible
login shells:
--8<---------------cut here---------------start------------->8---
if [ -f "$HOME/.guix-profile/etc/profile" ]
then
# Load the user profile's settings.
GUIX_PROFILE="$HOME/.guix-profile" \
. "$HOME/.guix-profile/etc/profile"
else
# At least define this one so that basic things just work
# when the user installs their first package.
export PATH="$HOME/.guix-profile/bin:$PATH"
fi
--8<---------------cut here---------------end--------------->8---
next prev parent reply other threads:[~2016-03-10 9:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-10 7:57 How to solve /etc/login.defs Jean Louis
2016-03-10 9:09 ` 宋文武 [this message]
2016-03-10 10:04 ` Jean Louis
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k2lag0nf.fsf@member.fsf.org \
--to=iyzsong@member.fsf.org \
--cc=guix@rcdrun.com \
--cc=help-guix@gnu.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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.