Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recently install debian wheezy (7.5) from the netinst, without gnome3, then install LXDE with sudo apt-get install task-lxde-desktop. No trouble with this, LXDE works perfectly :)
I was trying to execute xrandr on my login when I met a behavior I don't understand.

Here is my .profile (I didn't modify it)

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

When I login from the xserver, the ~/bin directory isn't add to PATH. When I login from tty[1-6], it's properly add to PATH. I read the default shell for lxde is dash (and not bash), but I think .profile is compatible with dash, isn't it ?

Here is my final question : Why my .profile isn't sourced when I log from the xserver ?

Any help appreciated
Sorry for my poor english =)

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Your problem is most probably the display manager. XDM and lightdm see themselves not as login shell and therefore do not source /etc/profile or ~/.profile.

Other display managers as Slim, KDM or GDM do source those files. I suggest you switch to one of those.

See also https://wiki.debian.org/DisplayManager

share|improve this answer
    
I waited for a long time, but I have an answer ! Thank you, I'm going to try Slim ;) –  Nizil Dec 1 at 10:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.