There seem to be missing executable flags on the shutdown scripts in $KDEDIR/shutdown which prevents them from being run. For some reason the test for startup scripts in startkde uses -r (readable file) and sources them while the test for shutdown scripts uses -x (executable file) and runs them. It's beyond me why this is so, but making the shutdown script(s) executable solves the problem. Reproducible: Always Steps to Reproduce: 1.uncomment something in a startup script under $KDEDIR/env (e.g. the ssh-agent) and the corresponding entry in a shutdown script under $KDEDIR/shutdown 2.log into KDE 3.log out again Actual Results: the agent is still running Expected Results: the agent should have stopped
Please note that the shutdown script provided for gpg-agent doesn't work with gpg-agent-1.9.14 (see bug #76720), so that one is not a good test case ;-)
I've fixed this in the 3.4.0_beta1 split ebuilds. Someone should do it for the 3.3 kdebase - I don't have the monolithic ebuilds installed atm.
Now it's fixed in kdebase 3.3.2-r2, too.
*** Bug 81969 has been marked as a duplicate of this bug. ***