71 |
{ |
{ |
72 |
: ${MOZILLA_PREF_CONFIG="01-magellan.js"} |
: ${MOZILLA_PREF_CONFIG="01-magellan.js"} |
73 |
case ${PNAME} in |
case ${PNAME} in |
74 |
firefox|mozilla-firefox) : ${MOZILLA_PREF_PATH="/usr/$(mlibdir)/${PNAME}/browser/defaults/preferences"} ;; |
*firefox*) : ${MOZILLA_PREF_PATH="/usr/$(mlibdir)/${PNAME}/browser/defaults/preferences"} ;; |
75 |
thunderbird|mozilla-thunderbird) : ${MOZILLA_PREF_PATH="/usr/$(mlibdir)/${PNAME}/defaults/preferences"} ;; |
*thunderbird*) : ${MOZILLA_PREF_PATH="/usr/$(mlibdir)/${PNAME}/defaults/preferences"} ;; |
76 |
esac |
esac |
77 |
local pref="$1" |
local pref="$1" |
78 |
local value="$2" |
local value="$2" |
90 |
else |
else |
91 |
# write a pref value |
# write a pref value |
92 |
[[ -z ${value} ]] && die "msetpref(): no \$value given" |
[[ -z ${value} ]] && die "msetpref(): no \$value given" |
93 |
|
# respect NULL values |
94 |
|
[[ ${value} = NULL ]] && value="" |
95 |
|
|
96 |
# handle escaped strings: |
# handle escaped strings: |
97 |
|
|