I hope someone can assist. I am using Debian 4 at present.
I have created a new user called "user" and this user has a home directory at /home/user.
I am having some trouble getting xfce to start properly from the .bashrc file when 'user' logs in.
I can start xfce automatically if I log in and type "startx" from the command line. xorg and xfce seem to work flawlessly if I do that.
The .bashrc file for 'user' looks like this:
# ~/.bashrc: executed by bash(1) for non-login shells.
export PS1='\h:\w\$ '
# You may uncomment the following lines if you want `ls' to be colorized:
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
case `/usr/bin/tty` in /dev/tty[0-9]*)
if [ -z "$XPID"] ; then
startx -nolisten tcp; exit
When 'user' logs in, xfce commences to start (which would indicate that the .bashrc file is being executed), however the moment the xfce desktop tries to appear on the screen, xfce exits and 'user' is logged out.
The thing here that I find so strange is that if 'user' manually types "startx", then xfce works fine.
Any suggestions on how to fix would be really appreciated because I am a little bit lost at the moment.