Re: [Tails-dev] Migrating to (something closer to) the regul…

Nachricht löschen

Nachricht beantworten
Autor: Kill Your TV
Datum:  
To: tails-dev
Betreff: Re: [Tails-dev] Migrating to (something closer to) the regular Tor Browser
On Thu, 18 Sep 2014 23:08:44 +0000 (UTC)
intrigeri <intrigeri@???> wrote:


> +ln -s /usr/share/xul-ext/adblock-plus/ "${TBB_EXT}"/'{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}'
> +ln -s /usr/share/xul-ext/foxyproxy-standard/ "${TBB_EXT}"/foxyproxy@???
> +ln -s /usr/share/xul-ext/torbutton/ "${TBB_EXT}"/torbutton@???


> It would be nice to take 15 minutes to try and extract the right-hand
> values dynamically. If it's not done after 15 minutes, give up :)


Perhaps something like this would work?


get_id(){
    sed -nr 's/^\s+<em:id>(.+)<\/em:id>/\1/p' "${1}/install.rdf" | head -n1
}


ADBLOCK_EXT="/usr/share/xul-ext/adblock-plus"
FOXYPROXY_EXT="/usr/share/xul-ext/foxyproxy-standard/"
TORBUTTON_EXT="/usr/share/xul-ext/torbutton/"
ADBLOCK_UUID=$(get_id ${ADBLOCK_EXT})
FOXYPROXY_UUID=$(get_id ${FOXYPROXY_EXT})
TORBUTTON_UUID=$(get_id ${TORBUTTON_EXT})


--
GPG ID: 0x5BF72F42D0952C5A
Fingerprint: BD12 65FD 4954 C40A EBCB F5D7 5BF7 2F42 D095 2C5A