Relocating ~/.xsession-errors

Martijn van Buul pino at
Tue Oct 13 20:00:04 UTC 2009

* Polytropon:
> On Tue, 13 Oct 2009 08:02:19 +0000 (UTC), Martijn van Buul <pino at>
> wrote:
>> I'd like to relocate this file to a tmpfs ramdisk,
>> if possible.
> Have you tried using a symlink? I'm not sure if this will
> work across partitions...

Symlinks work across partitions, but the problem is that symlinks (or 
hardlinks for that matter..) won't work here. GDM is responsible for setting
up the redirection, and before doing so it moves the existing .xsession-errors
to .xsession-errors.old. This is intentional, so in case of a suddenly 
terminating X session the old logging of the previous session is still

This means that the (symbolic) link will just end up being moved to
.xsession-errors.old, thus defeating the purpose.

>> Does anyone know an alternate way to move this logfile, or if everything
>> else fails how to silence it?
> Symlink to /dev/null? :-)

Alas :)

Thanks for thinking along with me.

Martijn van Buul - pino at 

More information about the freebsd-questions mailing list