Hi there, I also use Suse 9.3 with the default installation. In my $KDE_DIR (i.e. /opt/kde3/) I have a shutdown directory. Inside, there's a file called stopkde.suse.sh ------- BEGIN ------- < fk@jedi:/opt/kde3/shutdown > cat stopkde.suse.sh #! /bin/sh if test -n "$SSH_AGENT_PID"; then ssh-agent -k fi if test -n "$GPG_AGENT_INFO"; then pid=`echo "$GPG_AGENT_INFO" | cut -d: -f2` if test -n "$pid"; then kill $pid fi fi echo "yes yes yes" >> /home/fk/test.txt ------- END ------- After editing this file (as root), and adding the echo command above, I've logged out twice of my KDE and looked at my test file.. ------- BEGIN ------- < fk@jedi:~ > cat test.txt yes yes yes yes yes yes ------- END ------- Therefore, there's is a script that is executed every time KDE exits. Thus, you can add your own script inside this one, as long as you have this directory, shutdown, inside your $KDE_DIR. But this is another story. Good luck! Carlos Costa Sami A. Hassanein wrote:
On Wednesday 07 September 2005 08:32, Ingo Strauch wrote:
On Tue, 6 Sep 2005 21:48:56 +0200 "Sami A. Hassanein" <linux@hassanein.ch> wrote:
I want to run a user script when KDE goes down - where do I have to place such scripts?
You could create a ~/.xsession file that contains something like this:
------------ $WINDOWMANAGER <call to your script>
I use SUSE9.3 and KDE 3.4.0. I created the file ~/.xinitrc and put my script as you suggested, but nothing happend - it was not being called. Now I am looking for a solution sincd weeks and I really do not know how to achieve this. There must be a way to call a user script at closing of KDE of X.
-- Any help is very much appreciated. Regards, Sami