Mailinglist Archive: opensuse-kde (114 mails)

< Previous Next >
Re: [suse-kde] KDE and shutdown script
  • From: Carlos Costa <linux4me@xxxxxxxxxxxx>
  • Date: Fri, 09 Sep 2005 18:27:43 -0300
  • Message-id: <4321FE4F.5020103@xxxxxxxxxxxx>
Actually I just wrote down $KDE_DIR referring to the /opt/kde3/ directory. That doesn't mean it exists as an environment variable. :-)

Well, for me the script has definitely executed.

Cheers,
Carlos Costa

Sami A. Hassanein wrote:
On Friday 09 September 2005 00:17, Carlos Costa wrote:
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..

I have the same script in /opt/kde3/shutdown, but this script will never be executed!!
Do you really have the environment variable $KDE_DIR set?
I never heard of this env variable.

--
Thanks for any further tips.
Sami



< Previous Next >