--- trunk/include/mozilla.sminc 2013/11/25 09:32:24 20077 +++ trunk/include/mozilla.sminc 2020/09/16 10:26:25 33316 @@ -71,8 +71,8 @@ { : ${MOZILLA_PREF_CONFIG="01-magellan.js"} case ${PNAME} in - firefox|mozilla-firefox) : ${MOZILLA_PREF_PATH="/usr/$(mlibdir)/${PNAME}/browser/defaults/preferences"} ;; - thunderbird|mozilla-thunderbird) : ${MOZILLA_PREF_PATH="/usr/$(mlibdir)/${PNAME}/defaults/preferences"} ;; + *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" @@ -90,6 +90,8 @@ else # write a pref value [[ -z ${value} ]] && die "msetpref(): no \$value given" + # respect NULL values + [[ ${value} = NULL ]] && value="" # handle escaped strings: