--- smage/trunk/include/mozilla.sminc 2011/08/29 20:03:18 2792 +++ smage/trunk/include/mozilla.sminc 2013/12/16 10:18:54 5214 @@ -70,7 +70,10 @@ msetpref() { : ${MOZILLA_PREF_CONFIG="01-magellan.js"} - : ${MOZILLA_PREF_PATH="/usr/$(mlibdir)/${PNAME}/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