Monday, May 28, 2007

.xsession-errors file fills up the home directory


.xsession-errors file fills up the home directory:

Idea here is to either
1) modify the lines in the /etc/X11/Xsession file from

exec >>"$ERRFILE" 2>&1
exec >"$ERRFILE" 2>&1

which will overwrite the xsession-errors file on each start of X,

(idea from google somewhere)

or else

2) follow the idea of

if we don't care about X errors
and simply replace
the error handling stanza with

exec > "$errfile" 2>&1

Or else

3) set up log rotation of the .xsession-errors files in users directories.


JRT said...

I was wondering exactly how to set up logrotate as what I tried didn't work.

rubbersidedown said...

I have step-by-step instructions on how to use logrotate for this on my blog.