Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #286635
| Path | csiph.com!pasdenom.info!newsfeed.bofh.team!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | <tomas@tuxteam.de> |
| Newsgroups | linux.debian.user |
| Subject | Re: Sourcing of .profile |
| Date | Thu, 14 May 2026 11:40:01 +0200 |
| Message-ID | <MUAHT-52Sc-5@gated-at.bofh.it> (permalink) |
| References | <MUwuB-50im-3@gated-at.bofh.it> <MUA5b-52oe-5@gated-at.bofh.it> |
| X-Original-To | debian-user@lists.debian.org |
| X-Mailbox-Line | From debian-user-request@lists.debian.org Thu May 14 09:33:14 2026 |
| Old-Return-Path | <tomas@tuxteam.de> |
| X-Amavis-Spam-Status | No, score=-12.1 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -4.6 |
| MIME-Version | 1.0 |
| Content-Type | multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="by1tfP6OQpy4Brm0" |
| Content-Disposition | inline |
| X-Mailing-List | <debian-user@lists.debian.org> archive/latest/830170 |
| List-ID | <debian-user.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-user/> |
| List-Archive | https://lists.debian.org/msgid-search/agWWybwBvrUxXf/8@tuxteam.de |
| Approved | robomod@news.nic.it |
| Lines | 60 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | Brieuc Desoutter <brieuc.desoutter@gmail.com> |
| X-Original-Date | Thu, 14 May 2026 11:32:57 +0200 |
| X-Original-Message-ID | <agWWybwBvrUxXf/8@tuxteam.de> |
| X-Original-References | <CAGp3f3F1roNoHFsn_8zsarDDkSrtGYXgXLpxe4rJuurSgyStcA@mail.gmail.com> <agWNKdRQ69tVECQe@phare.normalesup.org> |
| Xref | csiph.com linux.debian.user:286635 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On Thu, May 14, 2026 at 10:51:53AM +0200, Nicolas George wrote: > Brieuc Desoutter (HE12026-05-14): > > 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? > > If you are logging with Gnome, then no login shell gets invoked, and > therefore .profile is not supposed to be sourced. If it is, that means > something in the chain sources it explicitly, and it is entirely > possible it does something like this: > > if [ -f "$HOME/.profile" ] ; then > . "$HOME/.profile" > fi > > A -f instead of -e would exclude symlinks. Yep, that would be one of the candidates. That's why I'm insisting Brieuc tries things like "bash -l" and reports the results. Actually "shopt login_shell" will tell you (with bash at least) whether your current shell thinks it is a login shell. > My two pieces of advice: > > 1. Be the master of your login process: start with a .xsession file that > does exactly what you want it to do before it starts a desktop. That's what I usually do for shells running beneath X. > 2. Use zsh instead of bash [...] This is not really helpful: I know zsh can do many tricks bash can't, and there are reasons for it (and against, mind you), but this doesn't address OP's problem. Cheers -- t
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar
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