And what does ls -l /usr/bin/emacs* show? The file /usr/bin/emacs is a script which starts the real emacs, like emacs-nox or emacs-x11 or emacs-gtk. Beside this XAUTHLOCALHOSTNAME=linux-jmqj ... no local hostname configured ... OK not required SHLVL=2 how this? Is this KDE specific? XAUTHORITY=/tmp/xauth-1000-_0 �h? Is this also KDE specific? IMHO the users Xauthority file belongs to his/her HOME directory HOME=/home/gre it seems that WINDOWMANAGER=/usr/bin/startkde ignores the standard