Tzafrir Cohen wrote:
e.g.: if you use startx, you can create a simple $HOME/.xinitrc file
that will run:

  ERRFILE=$HOME/.xsession-errors
  rm -f $ERRFILE
  touch  $ERRFILE
  chmod 600 $ERRFILE
  exec /etc/X11/Xsession

Note that if you run two X sessions simultaniously, the second file's


However if your X sessions are long-running such a strategy won't do (and deleting that file in the middile of a session won't help you a bit).


If you are not interested in keeping the errors around then a periodic "echo -n > $HOME/.xsession-errors" will truncate the file even while the file is opened in append mode by running applications. It's also a better strategy to replace the above "rm/touch/chmod" because it avoids the risk that the "removed" file is still used by some old process, as well as not having to restore the files permissions.

--Amos

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Reply via email to