help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to solve /etc/login.defs


From: Jean Louis
Subject: Re: How to solve /etc/login.defs
Date: Thu, 10 Mar 2016 11:04:40 +0100

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 <address@hidden> 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---



reply via email to

[Prev in Thread] Current Thread [Next in Thread]