switching to slim, .profile not read

Hi,

After switching to slim from XDM I noticed my PATH wasn't set correctly. It looks like slim won't read my .profile. After disabling slim at startup, my .profile is again read at startup. Is there a good reason for this?
 
Did you find the reason for this or a solution to read .profile?

I'm using slim 1.3.5 and XFCE 4.10 and my .profile is not being read. The login_cmd in /usr/local/etc/slim.conf is
Code:
login_cmd           exec /bin/sh - ~/.xinitrc %session

The only line that is in .xinitrc is this
Code:
/usr/local/bin/startxfce4
 
The ~/.profile is only read when starting a login shell. Starting X doesn't start a login shell.
 
I found this thread in a google search because I am still having the same problem. Using slim in virtualbox, .profile isn't being read.

I'm using MATE and I was able to fix this by checking "Run command as login shell" in mate terminal's profile preferences ("Title and command" tab). I'm assuming that xfce, GNOME and KDE each can do the same thing with their terminal programs.
 
Back
Top