Quote:
Originally Posted by JackieBrown
or have it not record at all?
|
I was once annoyed by xsession flood, I changed this line (In /etc/X11/Xsession)
# attempt to create an error file; abort if we cannot
if (umask 077 && touch "$ERRFILE") 2> /dev/null && [ -w "$ERRFILE" ] &&
[ ! -L "$ERRFILE" ]; then
chmod 600 "$ERRFILE"
elif ERRFILE=$(tempfile 2> /dev/null); then
if ! ln -sf "$ERRFILE" "${TMPDIR:=/tmp}/xsession-$USER"; then
message "warning: unable to symlink \"$TMPDIR/xsession-$USER\" to" \
"\"$ERRFILE\"; look for session log/errors in" \
"\"$TMPDIR/xsession-$USER\"."
fi
else
errormsg "unable to create X session log/error file; aborting."
fi
#remove xsession-errors
#exec >>"$ERRFILE" 2>&1
exec &> /dev/null
There are maybe cleaner ways of doing it but didn't find really.
Weeks later, I had problems with an X client and without this log, you can't really see anything, so I reverted my modification.
I don't think you can create softlinks or anything, if you look at the previous lines. It will abort if it cannot create $HOME/.xsession-errors or create a tmpfile in TMPDIR.