I copied it from the Xsession file, didn't really think about what it does.

On Thu, 2003-02-13 at 15:44, Robert G. Werner wrote:
Hugh Taylor wrote:
[snip]

>>> included the file below (.xsession and .xinitrc are the same). Any
>>> ideas? Oh, I'm using RedHat 7.3.
>>> 
>>> ------------------------------------------------------------------
>>> #!/bin/bash
>>> # I hope this works
>>> 
>>> # redirect errors to a file in user's home directory if we can
>>> 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
>>> 
>>> exec /usr/X11R6/bin/xscreensaver &
>>> -----------------------------------------------------------------
>>> 
>>> -- 
>>> Hugh Taylor <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>/
>>
> -- 
> Hugh Taylor <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> 
> 
I'm using .xsession to start xscreensaver and run xmodmap etc.  It 
needs to be executable (chmod o+x .xscreensaver).  This works from GDM 
for me on both RedHat 7.3 and RH 8.0.

What is the purpose of the exec in your tests for the existence of a 
previous error file?
--
Hugh Taylor <[EMAIL PROTECTED]>

Reply via email to