Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > linux.debian.user > #286625

Re: Sourcing of .profile

From Brieuc Desoutter <brieuc.desoutter@gmail.com>
Newsgroups linux.debian.user
Subject Re: Sourcing of .profile
Date 2026-05-14 08:40 +0200
Message-ID <MUxTH-512C-9@gated-at.bofh.it> (permalink)
References <MUwuB-50im-3@gated-at.bofh.it> <MUwXD-50rw-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Yes that is correct:

case 1: if $HOME/.profile is a regular file in $HOME, then $HOME/bin and
$HOME/.local/bin are in PATH as expected.

case 2: If $HOME/.profile is a symlink to $HOME/Setup/shell/.profile (with
same content as in case 1), then $HOME/bin and $HOME/.local/bin are NOT in
PATH as expected

On Thu 14 May 2026 at 07:33, <tomas@tuxteam.de> wrote:

> On Thu, May 14, 2026 at 07:03:07AM +0200, Brieuc Desoutter wrote:
> > TL/DR: On Trixie with Gnome, right after login with…
> > - default .profile -> ~/bin and ~/.local/bin in PATH
> > - .profile as a symlink to the default .profile located in different
> > directory -> no ~/bin or ~/.local/bin in PATH
> >
> > Why?
> >
> >
> > Hi,
> >
> > I am running Trixie with Gnome and I am trying to manage my config and
> dot
> > files with GNU stow. So I have Setup/ repo (my stow directory) with a
> > shell/ package directory which contains my .bashrc and my .profile files.
> > The .profile is the same as in /etc/skel (default one).
> >
> > When I stow the shell package in my $HOME, it creates a symlink
> ~/.profile
> > pointing to $HOME/Setup/shell/.profile.
> >
> > The issue is that when I logout and log back in, my PATH does not contain
> > $HOME/bin and $HOME/.local/bin as it should.
> >
> > It is as if the symlinked .profile wasn’t sourced.
> >
> > default .profile file in ~ ~/bin and ~/.local/bin in PATH.
> > .profile as a symlink to origin
> > Question: is it by design? Eg only source a regular file .profile at
> login
> > (not symlink)
>
> Hi,
>
> I couldn't understand from your mail: if you set up .profile as a regular
> file in your $HOME everything works as expected? I'd first double-check
> that, but perhaps I misread you.
>
> Then I'd look into whether the login shell can read your Stow location.
> Perhaps by starting a login shell with strace.
>
> Cheers
> --
> t
>

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Sourcing of .profile Brieuc Desoutter <brieuc.desoutter@gmail.com> - 2026-05-14 07:10 +0200
  Re: Sourcing of .profile <tomas@tuxteam.de> - 2026-05-14 07:40 +0200
    Re: Sourcing of .profile Brieuc Desoutter <brieuc.desoutter@gmail.com> - 2026-05-14 08:40 +0200
      Re: Sourcing of .profile Anssi Saari <anssi.saari@debian-user.mail.kapsi.fi> - 2026-05-14 09:50 +0200
        Re: Sourcing of .profile <tomas@tuxteam.de> - 2026-05-14 09:50 +0200
      Re: Sourcing of .profile tomas@tuxteam.de - 2026-05-14 09:50 +0200
      Re: Sourcing of .profile Chris Green <cl@isbd.net> - 2026-05-14 10:50 +0200
  Re: Sourcing of .profile Nicolas George <george@nsup.org> - 2026-05-14 11:00 +0200
    Re: Sourcing of .profile <tomas@tuxteam.de> - 2026-05-14 11:40 +0200
      Re: Sourcing of .profile Brieuc Desoutter <brieuc.desoutter@gmail.com> - 2026-05-14 12:10 +0200
        Re: Sourcing of .profile tomas@tuxteam.de - 2026-05-14 12:30 +0200
    Re: Sourcing of .profile Greg Wooledge <greg@wooledge.org> - 2026-05-14 13:30 +0200

csiph-web