#351166 size of .xsession-errors should be limited

#351166#5
Date:
2006-02-02 22:26:53 UTC
From:
To:
Yesterday, ~/.xsession-errors grew to over 600MB.
This was all the free disk space available on the partition.
It should really be limited to a maximum size.

Note that it was not possible to rm the file, and the file seemed
to consist of non-ascii chars, so something else was wrong as well.

Andrew V.

#351166#16
Date:
2014-01-08 11:46:59 UTC
From:
To:
Hi,

the problem seems to be that the default X session script redirects both
standard output and standard error to .xsession-errors, when it really
should only redirect standard error.

Imagine what happens when the user runs a program such as mplayer that
writes a lot to stdout because it updates its status line several times per
second.  All this data ends up in .xsession-errors, which gets very large
very quickly.  This kind of output doesn't belong into a log file.

Please, consider changing the following line from the Xsession script

exec >>"$ERRFILE" 2>&1

into:

exec 2>>"$ERRFILE" >/dev/null

I think that this would fix the issue.

Regards.

#351166#21
Date:
2014-08-07 14:06:25 UTC
From:
To:
Hi

Mine is the same. It always grows without any control. Right now it is 572MB.
Why does this happen?

#351166#26
Date:
2014-08-07 14:13:49 UTC
From:
To:
I get this error several times per second:

Type the full path here or press "Ctrl+C" to abort: Couldn't find --local!