I'm not sure if this should be a fedora question, or a software question, but since I am I newb I figure i'll try in here. If it needs to me moved let me know I will correct it asap.

I have FC6 installed with X-windows and KDE running. In my kpanel I have an option to end the session or to logout. Nothing about shutdown, so I usually log out then from the shell I type shutdown -h now.

I think I may be doing this incorrectlly, becuse everytime I boot up I have to delete the /tmp/.X0.lock file before I can startx.

Is this becuse of a bug in xwindows or in the way i'm closing down?

Any help would be much appricated,