From dd339e54ed9ee538923eff42ac91452b3297c11c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 12 Nov 2005 13:47:56 +0000 Subject: [PATCH] - ripped hackery from gentoo of removing outdated compreg/chrome/xul cache in case of firefox upgrade. fixes firefox blank window problem Changed files: mozilla-firefox.sh -> 1.9 --- mozilla-firefox.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mozilla-firefox.sh b/mozilla-firefox.sh index 4bb6a57..22fd73b 100644 --- a/mozilla-firefox.sh +++ b/mozilla-firefox.sh @@ -35,6 +35,15 @@ if [ -z "$MOZARGS" ]; then done fi +# compreg.dat and/or chrome.rdf will screw things up if it's from an +# older version. http://bugs.gentoo.org/show_bug.cgi?id=63999 +for f in ~/{.,.mozilla/}firefox/*/{compreg.dat,chrome.rdf,XUL.mfasl}; do + if [[ -f ${f} && ${f} -ot /usr/bin/mozilla-firefox ]]; then + echo "Removing ${f} leftover from older firefox" + rm -f "${f}" + fi +done + if [ -n "$MOZARGS" ]; then FIREFOX="$LIBDIR/firefox $MOZARGS" else -- 2.43.0