The original idea behind /tmp was that nothing on /tmp was permanent. Most distributions wiped /tmp clean at boot.
Then KDE started leaving some of its files permanently on /tmp. Leaving the files there permanently speeds up KDE login. If you delete these files then KDE just takes longer to initialize.
My distribution, and obviously yours too, stopped cleaning /tmp at boot so as to have a fast KDE. I also started accumulating junk on /tmp from programs that do not bother to erase their temporary files.
I decided to clean /tmp at every shutdown. I added the following lines to /etc/init.d/halt.local to clean /tmp:
echo "cleaning /tmp"
rm /tmp/* -R
This works fine on SuSE 8.1. The first time I start KDE after boot it takes about 10 seconds longer to initialize. On your distribution /etc/init.d/halt.local may or may not be the place to put the commands.
I read someplace that KDE was looking for a better place to keep its files.
Last edited by jailbait; 06-02-2003 at 11:22 PM.