Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #233940
| From | Greg Wooledge <greg@wooledge.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: .profile not being src'd at login on uptodate buster |
| Date | 2021-04-07 17:40 +0200 |
| Message-ID | <C1irE-6dB-1@gated-at.bofh.it> (permalink) |
| References | <C1fk5-4iQ-1@gated-at.bofh.it> <C1i8h-64f-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Apr 07, 2021 at 03:16:41PM +0000, Lee wrote: > On 4/7/21, Gene Heskett <gheskett@shentel.net> wrote: > > Greetings all; > > > > I just installed buster on a Dell 7010 and I have added two stanza's to > > my .profile, to find a logout and back in does not establish a new > > $PATH. > > Probably because you've got a window manager that does the login stuph for you.. Display Manager. > > The first of them will be added but not the other if I > > . .profile > > # set PATH so it includes user's private AppImages if it exists > > if [ -d "$HOME/AppImages" ] ; then > > PATH="$HOME/AppImages:$PATH" > > fi > > ===== > > Both directories do exist. Prove it, by running ls -ld $HOME/AppImages in a terminal, and then pasting the shell prompt, the command, and its output from the terminal session into the body of the email. For example, unicorn:~$ ls -ld $HOME/AppImages ls: cannot access '/home/greg/AppImages': No such file or directory > > Any idea why its not working? > > A typo in your script? Add an else clause that shows the error and > that will probably show you what's wrong -- eg > > dir="$HOME/AppImages" > if [ -d "$dir" ] ; then > PATH="$dir:$PATH" > else > echo "OnNoes!! The directory \"$dir\" does not exist!" > fi Writing error messages to stdout from a .profile isn't generally the best idea. Writing to stderr would be slightly better, but both of them should be avoided in a permanent configuration if possible. Profiles that scribble to stdout or stderr during login can break things like scp. As a *temporary* debugging measure, it's fine. > note that $HOME/AppImages is listed only once. That makes sure that > your test, path and diagnostic output are all using the same directory > name. That's good advice in general, yeah.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
.profile not being src'd at login on uptodate buster Gene Heskett <gheskett@shentel.net> - 2021-04-07 14:20 +0200
Re: .profile not being src'd at login on uptodate buster IL Ka <kazakevichilya@gmail.com> - 2021-04-07 14:30 +0200
Re: .profile not being src'd at login on uptodate buster Gene Heskett <gheskett@shentel.net> - 2021-04-07 17:30 +0200
Re: .profile not being src'd at login on uptodate buster Gene Heskett <gheskett@shentel.net> - 2021-04-07 17:40 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-07 14:40 +0200
Re: .profile not being src'd at login on uptodate buster David Wright <deblis@lionunicorn.co.uk> - 2021-04-07 17:10 +0200
Re: .profile not being src'd at login on uptodate buster Lee <ler762@gmail.com> - 2021-04-07 17:20 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-07 17:40 +0200
Re: .profile not being src'd at login on uptodate buster David Wright <deblis@lionunicorn.co.uk> - 2021-04-07 18:40 +0200
Re: .profile not being src'd at login on uptodate buster Marco Ippolito <maroloccio@gmail.com> - 2021-04-07 23:20 +0200
Re: .profile not being src'd at login on uptodate buster Lee <ler762@gmail.com> - 2021-04-07 23:50 +0200
Re: .profile not being src'd at login on uptodate buster Marco Ippolito <maroloccio@gmail.com> - 2021-04-08 14:30 +0200
Re: .profile not being src'd at login on uptodate buster David Wright <deblis@lionunicorn.co.uk> - 2021-04-10 20:30 +0200
Re: .profile not being src'd at login on uptodate buster Lee <ler762@gmail.com> - 2021-04-10 21:00 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-10 21:30 +0200
Re: .profile not being src'd at login on uptodate buster David Wright <deblis@lionunicorn.co.uk> - 2021-04-11 16:20 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-11 16:50 +0200
Re: .profile not being src'd at login on uptodate buster Lee <ler762@gmail.com> - 2021-04-11 19:10 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-11 20:00 +0200
Re: .profile not being src'd at login on uptodate buster David Wright <deblis@lionunicorn.co.uk> - 2021-04-12 17:20 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-12 17:30 +0200
Re: .profile not being src'd at login on uptodate buster David Wright <deblis@lionunicorn.co.uk> - 2021-04-12 18:10 +0200
Re: .profile not being src'd at login on uptodate buster David Wright <deblis@lionunicorn.co.uk> - 2021-04-11 16:20 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-11 16:50 +0200
Re: .profile not being src'd at login on uptodate buster David Wright <deblis@lionunicorn.co.uk> - 2021-04-12 17:20 +0200
Re: .profile not being src'd at login on uptodate buster Lee <ler762@gmail.com> - 2021-04-07 23:50 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-08 00:10 +0200
Re: .profile not being src'd at login on uptodate buster Curt <curty@free.fr> - 2021-04-08 10:20 +0200
Re: .profile not being src'd at login on uptodate buster Tixy <tixy@yxit.co.uk> - 2021-04-08 12:20 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-08 13:30 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-08 13:40 +0200
csiph-web