--- trunk/core/include/mozilla.sminc 2009/07/12 17:40:30 2867 +++ trunk/include/mozilla.sminc 2013/01/11 09:31:10 15843 @@ -70,7 +70,7 @@ msetpref() { : ${MOZILLA_PREF_CONFIG="01-magellan.js"} - : ${MOZILLA_PREF_PATH="/usr/$(mlibdir)/mozilla-firefox/defaults/pref"} + : ${MOZILLA_PREF_PATH="/usr/$(mlibdir)/${PNAME}/defaults/preferences"} local pref="$1" local value="$2" @@ -79,6 +79,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 @@ -105,6 +109,6 @@ # eg: # pref("general.useragent.vendor","Magellan-Linux"); - echo "pref(\"${pref}\",${value});" >> ${BINDIR}/${MOZILLA_PREF_PATH}/${MOZILLA_PREF_CONFIG} || die + echo "pref(\"${pref}\", ${value});" >> ${BINDIR}/${MOZILLA_PREF_PATH}/${MOZILLA_PREF_CONFIG} || die fi }