$OpenBSD: patch-browser_app_mozilla_in,v 1.10 2008/11/20 23:41:32 martynas Exp $ --- browser/app/mozilla.in.orig Fri Oct 5 10:29:26 2007 +++ browser/app/mozilla.in Sat Nov 17 16:13:18 2007 @@ -52,6 +52,11 @@ #uncomment for debugging #set -x +LIMIT=`ulimit -n` +if [ $LIMIT -lt 128 -a "${LIMIT}" != "unlimited" ]; then + ulimit -Sn 128 +fi + moz_libdir=%MOZAPPDIR% # Use run-mozilla.sh in the current dir if it exists @@ -130,6 +135,12 @@ do ;; esac done + +if [ `_X11BASE_/bin/fc-list | wc -l` -eq 0 ]; then + export GDK_USE_XFT=0 +fi + +export MOZ_PLUGIN_PATH=${MOZ_PLUGIN_PATH:=_LOCALBASE_/lib/mozilla-plugins} if [ $debugging = 1 ] then