You are not logged in.

#1 2019-12-26 21:26:56

bohokash
Member
Registered: 2019-11-30
Posts: 76

bash_profile isn't sourced at start

After I installed LXDM login manager, ~/.bash_profile isn't sourced any more. It contains for example the PATH definition. I always have to source it manually, to be able to launch programs, which resides in directories of the PATH.  The default shell is /bin/bash, when I print with "echo $SHELL".

Offline

#2 2019-12-26 21:29:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: bash_profile isn't sourced at start

No shit? How did you work that out?

Arch Wiki LXDM article wrote:

Also note LXDM does not source ~/.bash_profile.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-12-26 22:28:35

bohokash
Member
Registered: 2019-11-30
Posts: 76

Re: bash_profile isn't sourced at start

I am not sure, that the two things are in connection, maybe just a random coincidence. But .bash_profile isn't sourced for some reason, and it still worked about a week ago.

Offline

#4 2019-12-26 22:31:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: bash_profile isn't sourced at start

I am sure the two things are connected, for the very reason quoted in the single sentence that Jason quoted for you.  But it seems you still haven't read even that one sentence.

Try again.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2019-12-26 23:07:38

bohokash
Member
Registered: 2019-11-30
Posts: 76

Re: bash_profile isn't sourced at start

I understand now: https://wiki.archlinux.org/index.php/LXDM "Advanced Session Configuration"
I didn't understand, because there was no login manager installed at all before, I had to start Xfce4 by typing "startxfce4", and the bash_profile was sourced.

Last edited by bohokash (2019-12-26 23:14:25)

Offline

#6 2019-12-26 23:41:24

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,430
Website

Re: bash_profile isn't sourced at start

I asked in your other topic, but I'll ask again here: how did you install Arch?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2019-12-27 00:19:46

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: bash_profile isn't sourced at start

bohokash wrote:

there was no login manager installed at all before, I had to start Xfce4 by typing "startxfce4", and the bash_profile was sourced.

Yes, and where did you type that "startxfce4"?  I a tty running bash.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB