2007-06-12 12:45:37 -04:00
|
|
|
$OpenBSD: patch-browser_app_mozilla_in,v 1.7 2007/06/12 16:45:37 martynas Exp $
|
2007-03-01 17:46:06 -05:00
|
|
|
--- browser/app/mozilla.in.orig Wed Sep 21 00:13:03 2005
|
2007-06-12 12:45:37 -04:00
|
|
|
+++ browser/app/mozilla.in Tue Jun 12 18:24:57 2007
|
|
|
|
@@ -92,7 +92,13 @@ moz_pis_startstop_scripts()
|
|
|
|
#uncomment for debugging
|
2004-02-15 14:37:14 -05:00
|
|
|
#set -x
|
|
|
|
|
2007-06-12 12:45:37 -04:00
|
|
|
+LIMIT=`ulimit -n`
|
|
|
|
+if [ $LIMIT -lt 128 -a "${LIMIT}" != "unlimited" ]; then
|
|
|
|
+ ulimit -Sn 128
|
|
|
|
+fi
|
|
|
|
+
|
2004-02-15 14:37:14 -05:00
|
|
|
moz_libdir=%MOZAPPDIR%
|
|
|
|
+MOZ_PLUGIN_PATH=_LOCALBASE_/lib/mozilla-plugins
|
|
|
|
MRE_HOME=%MREDIR%
|
|
|
|
|
|
|
|
# Use run-mozilla.sh in the current dir if it exists
|
2007-06-12 12:45:37 -04:00
|
|
|
@@ -171,7 +177,11 @@ do
|
2004-02-15 14:37:14 -05:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
-export MRE_HOME
|
2007-03-01 17:46:06 -05:00
|
|
|
+if [ `_X11BASE_/bin/fc-list | wc -l` -eq 0 ]; then
|
|
|
|
+ export GDK_USE_XFT=0
|
2004-02-15 14:37:14 -05:00
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+export MOZ_PLUGIN_PATH MRE_HOME
|
2004-11-26 13:29:14 -05:00
|
|
|
|
|
|
|
## Start addon scripts
|
2005-09-24 12:19:29 -04:00
|
|
|
moz_pis_startstop_scripts "start"
|