Unfortunately when you use default prefs you end up in a race condition
with the add-on.

The best thing to do is actually to set user prefs, not default prefs. Then
those are used instead (unless the add-on does something silly and force
the read of default prefs).

You will have to use autoconfig and set pref() there. That will make a user
preference.

Mike



On Fri, Jun 17, 2016 at 5:43 AM, Marco Gaiarin <[email protected]> wrote:

>
> I'm moving to FF45, and i'm moving installation of extensions from
> ''unpacked'' to ''packed''.
> Some non-signed extensions have to be changed.
>
> I've changed my 'click2dial' extensions, from a rather custom one to:
>
>         https://addons.mozilla.org/it/firefox/addon/asterisk-click2dial/
>
> extension work, but i've tried to ''preconfigure'' them, with lo luck.
> I cannot fully configure (easily), because extension need password and
> usrs, but i was used to prepare some set of common configuration, and
> complete the task by hand, user by user.
>
>
> Anyway, i've setup a common configuration .js file and copied to:
>
>         "%ProgramFiles%\Mozilla
> Firefox\browser\defaults\preferences\asterisk-click2dial.js"
>
> (so, i'm using simple pref();, as stated i need only to set some
> default...) but defaults still are the generic one.
>
> The ''packed'' .xpi have a default preferences file in
> "default\preferences\asterisk-ext.js". They are exactly the default
> preferences of the extensions, but i'm not clear if this is an incident
> (becuse that was only and example, identical to the hardcode
> configuration) or really that preference file are used as default by
> extension...
>
>
> How can i override a ''default preference'' file provided by a .xpi? I
> need to switch to AutoConfig and defaultPref(); call?
>
>
> Thanks.
>
> --
> dott. Marco Gaiarin                                     GNUPG Key ID:
> 240A3D66
>   Associazione ``La Nostra Famiglia''
> http://www.lanostrafamiglia.it/
>   Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento
> (PN)
>   marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f
> +39-0434-842797
>
>                 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
>     http://www.lanostrafamiglia.it/25/index.php/component/k2/item/123
>         (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
> _______________________________________________
> Enterprise mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/enterprise
>
> To unsubscribe from this list, please visit
> https://mail.mozilla.org/listinfo/enterprise or send an email to
> [email protected] with a subject of "unsubscribe"
>
_______________________________________________
Enterprise mailing list
[email protected]
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit 
https://mail.mozilla.org/listinfo/enterprise or send an email to 
[email protected] with a subject of "unsubscribe"

Reply via email to