--- trunk/core/include/mozilla.sminc 2009/07/12 19:02:02 2870 +++ trunk/include/mozilla.sminc 2013/11/26 11:58:19 20234 @@ -70,7 +70,10 @@ msetpref() { : ${MOZILLA_PREF_CONFIG="01-magellan.js"} - : ${MOZILLA_PREF_PATH="/usr/$(mlibdir)/mozilla-firefox/defaults/pref"} + case ${PNAME} in + *firefox*) : ${MOZILLA_PREF_PATH="/usr/$(mlibdir)/${PNAME}/browser/defaults/preferences"} ;; + *thunderbird*) : ${MOZILLA_PREF_PATH="/usr/$(mlibdir)/${PNAME}/defaults/preferences"} ;; + esac local pref="$1" local value="$2" @@ -79,6 +82,10 @@ if [[ ${pref} = --init ]] then # only create an empty config + if [[ ! -d ${BINDIR}/${MOZILLA_PREF_PATH} ]] + then + install -d ${BINDIR}/${MOZILLA_PREF_PATH} || die + fi :> ${BINDIR}/${MOZILLA_PREF_PATH}/${MOZILLA_PREF_CONFIG} || die else # write a pref value