This question already has an answer here:

The same windows appear as I switch on the computer. Like if I had selected "Save session for future logins" though I don't. I remember launching some GUI apps with sudo, can it be the source of the problem?

How can I fix it?

marked as duplicate by pomsky, Zanna, karel, Tom Brossman, Eric Carvalho Oct 30 at 15:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

This depends on what UI/windowmanager setup you're currently using. You indicated xubuntu, which appears to already have been answered at Xubuntu reopens last session applications even though it shouldn't

If so, please be sure to give that person their updoot. :D

Not the answer you're looking for? Browse other questions tagged or ask your own question.