From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: How to solve /etc/login.defs Date: Thu, 10 Mar 2016 17:09:08 +0800 Message-ID: <87k2lag0nf.fsf@member.fsf.org> References: <20160310075733.GA28494@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adx9Z-0001M8-NS for help-guix@gnu.org; Thu, 10 Mar 2016 04:45:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adx9W-0004Vg-Ag for help-guix@gnu.org; Thu, 10 Mar 2016 04:45:09 -0500 Received: from smtp4.openmailbox.org ([62.4.1.38]:53065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adx9W-0004US-4j for help-guix@gnu.org; Thu, 10 Mar 2016 04:45:06 -0500 In-Reply-To: <20160310075733.GA28494@protected.rcdrun.com> (Jean Louis's message of "Thu, 10 Mar 2016 08:57:33 +0100") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org To: Jean Louis Cc: Help Guix Jean Louis 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---