Make nsgtk launcher script redirect stderr to a logfile (either ~/.netsurf/log.txt or /tmp/netsurf-log.txt

svn path=/trunk/netsurf/; revision=2891
This commit is contained in:
Rob Kendrick 2006-08-24 18:27:55 +00:00
parent 3d37607cda
commit 8aaf870e17

View File

@ -1,3 +1,9 @@
#!/bin/sh
if [ -d ~/.netsurf ]; then
LOG=~/.netsurf/log.txt
else
LOG=/tmp/netsurf-log.txt
fi
export NETSURFRES=`dirname $0`/gtk/res/
exec `dirname $0`/nsgtk "$@"
exec `dirname $0`/nsgtk "$@" 2>$LOG