all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to solve /etc/login.defs
@ 2016-03-10  7:57 Jean Louis
  2016-03-10  9:09 ` 宋文武
  0 siblings, 1 reply; 3+ messages in thread
From: Jean Louis @ 2016-03-10  7:57 UTC (permalink / raw)
  To: Help Guix

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?

Jean Louis

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to solve /etc/login.defs
  2016-03-10  7:57 How to solve /etc/login.defs Jean Louis
@ 2016-03-10  9:09 ` 宋文武
  2016-03-10 10:04   ` Jean Louis
  0 siblings, 1 reply; 3+ messages in thread
From: 宋文武 @ 2016-03-10  9:09 UTC (permalink / raw)
  To: Jean Louis; +Cc: Help Guix

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---

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to solve /etc/login.defs
  2016-03-10  9:09 ` 宋文武
@ 2016-03-10 10:04   ` Jean Louis
  0 siblings, 0 replies; 3+ messages in thread
From: Jean Louis @ 2016-03-10 10:04 UTC (permalink / raw)
  To: 宋文武; +Cc: Help Guix

Hello,

Thank you much.

I have solved that by using ~/.xsession like below. And I use zsh, but
for X it was required to give PATH before Window Manager starts.

cat .xsession
PATH=/home/data1/protected/Programming/git/fgallery:/home/data1/protected/.guix-profile/bin:/home/data1/protected/.guix-profile/sbin:/home/data1/protected/bin:/home/data1/protected/bin/facebook:/home/data1/protected/bin/CRM:/home/data1/protected/bin/ses:/home/data1/protected/gnu/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export LANGUAGE="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
exec icewm-session

On Thu, Mar 10, 2016 at 05:09:08PM +0800, 宋文武 wrote:
> 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---

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-10 10:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-10  7:57 How to solve /etc/login.defs Jean Louis
2016-03-10  9:09 ` 宋文武
2016-03-10 10:04   ` Jean Louis

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.