Command to log a user out? Or restart X within a script?
I've got a system that needs to work as a thin client. I've got it booting up into a remote desktop session, and I'd like it to log the user out of the local machine once the remote session closes. I can't seem to find a way to do that in my script. Has anybody ever made this work?
Right now the machine is running KDE on Fedora Core 5. I'll be running this script in my .kde/Autostart folder, so if it works this could be converted into an EXTREMELY geeky April Fool's joke for next year.