tux the turtle wrote: > Hi out there; > has anyone any idea where to put stuff that should be executed when the user > exits? Anything like ~/.xinitrc or ~/..profile? > Thanx... Do you want to run something when you exit from your X session, or when you exit KDM? When an X session ends, control is returned to the "Xsession" script if you didn't start kde with: "exec startkde". Or, more properly, XDM runs a script called: "Xreset" at the end of an X session. KDM will also do this but the current version needs to be set up to do it. Add the line: Reset=/usr/kde3/share/config/kdm/Xreset or something similar if your path is different in the: [X-*-Core] section. This script can then source a file: "~/.xreset" for each user if you want. Xreset -------------------------------- #!/bin/bash . $HOME/.xreset -------------------------------- Note the "." or use the word: "source". If you need to run something at the end of your KDM session, this presents a problem since the KDM session does not actually end, it is killed by the halt (or reboot) command. -- JRT ___________________________________________________ This message is from the kde-linux mailing list. Account management: http://mail.kde.org/mailman/listinfo/kde-linux. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.