openbsd-ports/mail/mozilla-thunderbird/patches/patch-mail_app_mozilla_in
wilfried 7cbef7cca1 don't use xft if no xft fonts is available
stops moz from crashing
2004-01-19 14:36:48 +00:00

25 lines
589 B
Plaintext

$OpenBSD: patch-mail_app_mozilla_in,v 1.2 2004/01/19 14:36:49 wilfried Exp $
--- mail/app/mozilla.in.orig 2003-04-05 22:52:38.000000000 +0200
+++ mail/app/mozilla.in 2004-01-19 15:33:25.000000000 +0100
@@ -33,6 +33,7 @@
#set -x
moz_libdir=%MOZAPPDIR%
+MOZ_PLUGIN_PATH=_LOCALBASE_/lib/mozilla-plugins
MRE_HOME=%MREDIR%
# honor MOZILLA_FIVE_HOME if it's there
@@ -111,7 +112,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
eval "set -- $moreargs"
if [ $debugging = 1 ]
then