Hi.

The script above can solve this issue. Note that, to me, proxy settings only 
works after version 1.5

Have a nice day.

#!/bin/bash
#
# Copyleft (c) 2014 Carlos Romel Pereira da Silva <[email protected]>
#
PROXY=10.2.2.9
PORT=3128
#
# Daqui para baixo, nada precisa ser alterado.
#
function ins() {
    grep --quiet --files-with-matches "$2" $1 || echo $2 >> $1
}

for ARQ in 
~/.mozilla/firefox/*.default/extensions/fxos_*[email protected]/profile/user.js;
 do
    for PROTO in {f,ht}tp ssl; do
        ins ${ARQ} "user_pref('network.proxy.${PROTO}', '${PROXY}');"
        ins ${ARQ} "user_pref('network.proxy.${PROTO}_port', ${PORT});"
    done

    ins ${ARQ} "user_pref('network.proxy.share_proxy_settings', true);"
    ins ${ARQ} "user_pref('network.proxy.type', 1);"
done


Em quinta-feira, 18 de julho de 2013 09h08min50s UTC-3, Henry Hoggard  escreveu:
> There is no .mozilla/extensions/r2...
> 
> 
> 
> However there is .mozilla/b2g/rand.profile/
> 
> 
> 
> Which has a prefs.js in, I tried adding the proxy settings to that but it 
> still doesn't work.

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to