This question already has an answer here:
I have visited over 30 different forum questions about this very same issue but none of them have been able to point me in the right direction.
I don't care what is causing the issue. I don't care what the error messages say.
I want to completely disable this from happening.
I don't want to disable all logging on my system just this .xsession-errors file.
I have tried the /dev/null thing it doesn't work. I made it read-only, just creates a new file .xsession-errors.jkhbjhjh. I even commented out the file generation in /etc/X11/xsession.
I'm running an ecommerce webserver that will be decommissioned in less than 90 days. I just need to keep the sites up long enough to get them all moved over to my new system. This log file is filling up my HDD 2 to 3 times a week rendering my webstores inoperable.
Just to be clear, I'd like to know how to disable .xsession-errors logging. I'm running Ubuntu 9.10 with gnome. I know it's no longer supported but again, this server is being decommissioned in less than 90 days it shouldn't matter.