The startkde script (/usr/kde/3.1/bin/startkde) is supposed to process "shutdown
scripts" after KDE exit, but improperly parses the list of 'exe' paths returned
from kde-config, so only the first path in the list is processed as expected
startkde includes the following code:
# Run scripts found in $KDEDIRS/shutdown
for prefix in `kde-config --path exe| sed -e 's^bin/^shutdown/^g;s^:^ ^'`
# run each script...
The second substitution expression passed to sed (s^:^ ^) doesn't include the /g
modifier, so it replaces only the first path separator with the input field
Adding the /g modifier so that the argument to sed becomes
's^bin/^shutdown/^g;s^:^ ^g' fixes the problem.
I checked bugs.kde.org to see if this issue was known upstream and found no
mention of it.
Submitted to kde:
closing this as a LATER - it's been reported ot kde folks...now we just have
to get them to act on it.
Okay, has been fixed upstream in KDE for 3.2