Artificial intelligent assistant

.profile is not sourced in Debian Wheezy LXDE I add `$HOME/bin` to `$PATH` from `~/.profile`. However, it seems it is not sourced during login. I use a login manager - `lxdm` I think, and not `startx`. I know this matters as to which scripts are executed. To illustrate, see how the `$HOME/bin` is added after I explicitly source `~/.profile`. But shouldn't it have been sourced during the graphical login? sashoalm@aspire:~$ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games sashoalm@aspire:~$ source ~/.profile sashoalm@aspire:~$ echo $PATH /home/sashoalm/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games sashoalm@aspire:~$

> But shouldn't it have been sourced during the graphical login?

There's a minor debate about that on which some graphical logins take an unusual stance...

> I add $HOME/bin to $PATH from ~/.profile. However, it seems it is not sourced during login. I use a login manager - lxdm I think

Correct. Most DM's do read `~/.profile` when you log in. However, they must do this explicitly, since `~/.profile` is traditionally sourced by _login shells_ and a DM (GUI login) is not a shell!

Which is the justification I have seen from the **`lightdm`** people for _not_ sourcing `~/.profile` explicitly -- because a DM is not a shell.

You can source `~/.profile` yourself from `~/.xsession` \-- see here.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 1e4849973e15cabfe0c35728ac68f739