openbsd-ports/www/mozilla-firefox/patches/patch-browser_app_mozilla_in

31 lines
753 B
Plaintext
Raw Normal View History

$OpenBSD: patch-browser_app_mozilla_in,v 1.7 2007/06/12 16:45:37 martynas Exp $
--- browser/app/mozilla.in.orig Wed Sep 21 00:13:03 2005
+++ 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
+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
@@ -171,7 +177,11 @@ do
2004-02-15 14:37:14 -05:00
esac
done
-export MRE_HOME
+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
## Start addon scripts
moz_pis_startstop_scripts "start"