summaryrefslogtreecommitdiff
path: root/netsurf
diff options
context:
space:
mode:
Diffstat (limited to 'netsurf')
-rwxr-xr-xnetsurf12
1 files changed, 10 insertions, 2 deletions
diff --git a/netsurf b/netsurf
index 8f0f8b70e..373425d83 100755
--- a/netsurf
+++ b/netsurf
@@ -1,9 +1,17 @@
#!/bin/sh
+# This file is part of NetSurf, http://netsurf-browser.org/
+# Licensed under the GNU General Public License,
+# http://www.opensource.org/licenses/gpl-license
+# Copyright 2007 Rob Kendrick <rjek@netsurf-browser.org>
+
if [ -d ~/.netsurf ]; then
LOG=~/.netsurf/log.txt
-else
+elif [ -d /tmp ]; then
LOG=/tmp/netsurf-log.txt
+else
+ LOG=netsurf-log.txt
fi
-export NETSURFRES=`dirname $0`/gtk/res/
+NETSURFRES=`dirname $0`/gtk/res/
+export NETSURFRES
exec `dirname $0`/nsgtk "$@" 2>$LOG