On Fri, 30 Oct 2020 at 05:27, Curt <cu...@free.fr> wrote: > On 2020-10-28, David <bouncingc...@gmail.com> wrote:
> > Yes, I don't feel that I found the full answer. Because I spent a while > > using https://codesearch.debian.net/ to examine the source code > > of lxsession but I was unable to find any code that referenced > > "xsession-errors" or "ERRFILE" or any logfile except > > "~/.cache/lxsession/LXDE/run.log". > > The relevant code apparently exists in the greeter app (or whatever it's > called) I use (lightdm): > > src/session.c: > > priv->log_filename = g_strdup (".xsession-errors"); > > src/log-file.c: > > old_filename = g_strdup_printf ("%s.old", log_filename); And the rename occurs in the next line in log-file.c: rename (log_filename, old_filename); So now we know that log rotation is done by the lightdm package: https://sources.debian.org/src/lightdm/1.26.0-7/src/log-file.c/?hl=28#L28 Thanks Curt!