
find usr/share/applications -iname '*firefox*' -exec sed -i 's, %.$,,g' '{}' \;

FF=`find usr/ -type d -name 'firefox*' -maxdepth 2`
mkdir -p ${FF}/browser/defaults/preferences
PREFDIR="${FF}/browser/defaults/preferences"

cat > ${PREFDIR}/local-settings.js <<_EOF
//
//default home page
pref("browser.startup.homepage", "data:text/plain,browser.startup.homepage=file:///usr/share/doc/home.htm");
_EOF
