The thing is that, on-and-off his system ocassionally hangs after login, and only shows the cursor and the green desktop. I’ve been looking into it to try to reproduce the failure and it has come to my attention that the cause for the hang is the .xsession-errors hidden file located in /home/user…
¿Is there a way to instruct the system to relocate this file, i mean, instead of being stored in /home/user it goes to /tmp ?
as i have a cron job to delete temp files on every boot, i can guarantee a newly created & fresh .xsession-errors file.
or, ¿can i point .xsession-errors to /dev/null ? … is this possible? how?
what are the consequences of doing this?
iirc, xsession-errors is hardcoded so you can’t provide a custom place for it
and yes, you can make a symlink to /dev/null (been using one myself for quiet some time as I usually don’t look into/need xsession-errors file). Note that under kde4, each time you login, it’ll remove that symlink so better creat a tiny script and place it in .kde4/Autostart so it’ll get executed each time you login and restore the link
I have something like:
ln -sf /dev/null $HOME/.xsession-errors
Consequences of pointing to /dev/null? All messages that belong into xsession-errors will land in /dev/null instead