$OpenBSD: patch-xulrunner_app_mozilla_in,v 1.1.1.1 2009/07/27 21:35:56 martynas Exp $
--- xulrunner/app/mozilla.in.orig	Tue Jan  8 01:17:05 2008
+++ xulrunner/app/mozilla.in	Sat May  2 23:22:29 2009
@@ -93,6 +93,7 @@ moz_pis_startstop_scripts()
 #set -x
 
 moz_libdir=%MOZAPPDIR%
+MOZ_PLUGIN_PATH=${MOZ_PLUGIN_PATH:=_LOCALBASE_/lib/mozilla-plugins}
 MRE_HOME=%MREDIR%
 
 # Use run-mozilla.sh in the current dir if it exists
@@ -100,7 +101,7 @@ MRE_HOME=%MREDIR%
 found=0
 progname="$0"
 curdir=`dirname "$progname"`
-progbase=`basename "$progname"`
+progbase="xulrunner"
 profile=""
 run_moz="$curdir/run-mozilla.sh"
 if test -x "$run_moz"; then
@@ -270,7 +271,11 @@ do
   esac
 done
 
-export MRE_HOME
+if [ `_X11BASE_/bin/fc-list | wc -l` -eq 0 ]; then
+	export GDK_USE_XFT=0
+fi
+
+export MOZ_PLUGIN_PATH MRE_HOME
 
 ## Start addon scripts
 moz_pis_startstop_scripts "start"
