I boot into init 3 (command line), and "startx &" manually when I need it.
The problem is that someone could simply switch VC terminals and login.
So I thought I'd write a little wrapper "x.sh" to startx and log me out of
the console. But it doesn't log me out?! If I switch back to the VC and type
"exit", I logout just fine. I've also tried to put "logout" there, and same
result.
daevid@locutus ~ $ cat /usr/local/bin/x.sh
---------- snip ------------
#!/bin/sh
# start X windows and force all the output to go to a log file
# instead of barfing on the screen.
/usr/X11R6/bin/startx > ~/.Xmsg.log 2>&1 &
# this will setup the fonts and such for gnome/gtk applications
# under other WMs, such as KDE
#ln -vs /usr/libexec/gnome-settings-daemon
~/.kde/Autostart/gnome-settings-daemon
clear
# this doesn't seem to work?!
exit
--
gentoo-user@gentoo.org mailing list
The problem is that someone could simply switch VC terminals and login.
So I thought I'd write a little wrapper "x.sh" to startx and log me out of
the console. But it doesn't log me out?! If I switch back to the VC and type
"exit", I logout just fine. I've also tried to put "logout" there, and same
result.
daevid@locutus ~ $ cat /usr/local/bin/x.sh
---------- snip ------------
#!/bin/sh
# start X windows and force all the output to go to a log file
# instead of barfing on the screen.
/usr/X11R6/bin/startx > ~/.Xmsg.log 2>&1 &
# this will setup the fonts and such for gnome/gtk applications
# under other WMs, such as KDE
#ln -vs /usr/libexec/gnome-settings-daemon
~/.kde/Autostart/gnome-settings-daemon
clear
# this doesn't seem to work?!
exit
--
gentoo-user@gentoo.org mailing list