Only tested in my computer, so use it at your own risk. Open a console and write:
cd ~
rm -f .xsession-errors
ln -s /dev/null .xsession-errors
Now .xsession-errors will always be zero size. If you ever need to check the errors or revert this, you do 'rm -f .xsession-errors" and it will be created in the next reboot.
Only tested in my computer, so use it at your own risk. Open a console and write:
cd ~
rm -f .xsession-errors
ln -s /dev/null .xsession-errors
Now .xsession-errors will always be zero size. If you ever need to check the errors or revert this, you do 'rm -f .xsession-errors" and it will be created in the next reboot.