Re: [K12OSN] .xsession-errors

Klaus Ade Johnstad (klaus@astro.uio.no)
Tue, 25 Feb 2003 22:00:57 +0100


tirsdag 25. februar 2003, 21:32, skrev Eric Harrison:
> Had another case of a ~/.xsession-errors file growing wildly and
> filling up a hard drive. Yuck.
>
> After doing some poking around, I think I have a hack to keep this
> from happening.
>
> Comment out the top section of /etc/X11/xdm/Xsession
>
>
> 	errfile="$HOME/.xsession-errors"
> 	if cp /dev/null "$errfile" 2> /dev/null ; then
> 	    chmod 600 "$errfile"
> 	    exec > "$errfile" 2>&1
> 	else
> 	    errfile=`mktemp -q /tmp/xses-$USER.XXXXXX`
> 	    if [ $? -eq 0 ]; then
> 	        exec > "$errfile" 2>&1
> 	    fi
> 	fi
>
>
> and replace it with this:
>
> 	errfile="/dev/null"
> 	exec > "$errfile" 2>&1
>
>
> This will redirect all of this error output to the bit bucket.
>
> -Eric
>
Do you have any idea which program caused this? I've experienced this 
with Gimp, often. What does it say in .xsession-errors?


Klaus



_______________________________________________
K12OSN mailing list
K12OSN@redhat.com
https://listman.redhat.com/mailman/listinfo/k12osn
For more info see