Monday, May 28, 2007

.xsession-errors file fills up the home directory

Problem:

.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
to
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
http://www.skolelinux.no/~klaus/newnotater/x2548.html

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

**************
errfile="/dev/null"
exec > "$errfile" 2>&1
***************

Or else

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

2 comments:

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.