1
I'm using startx in my .bashrc
file to start X when I login at tty1 instead of using a display manager like KDM (I'm using KDE 4.3.4). The actual code in my .bashrc
:
if [ -z "$DISPLAY" ] && [ "`tty`" = /dev/tty1 ]
then
startx
logout
fi
Now the problem is since KDM is not running I'm not able to use the shut down button from the KDE menu (because it needs root privileges to do so) and some other features are gone as well.
Is there a way to start KDM when I run startx
in my .bashrc
, like just running KDM in the background? The point is that I want no login display, so I'm sure there must be a way to just start KDM silently.
Exactly. Or do the extra seven keystrokes and run startx the normal way after you log in. – Justin Smith – 2010-04-07T02:31:59.327