tor-browser-bundle-bin: communicate with tor over named pipes

This commit is contained in:
Joachim Fasting 2017-07-04 15:09:39 +02:00
parent 92524eb2f1
commit f617f30b4c
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08

View File

@ -190,6 +190,12 @@ stdenv.mkDerivation rec {
// Stop obnoxious first-run redirection.
lockPref("noscript.firstRunRedirection", false);
// Insist on using IPC for communicating with Tor
//
// Defaults to creating $TBB_HOME/TorBrowser/Data/Tor/{socks,control}.socket
lockPref("extensions.torlauncher.control_port_use_ipc", true);
lockPref("extensions.torlauncher.socks_port_use_ipc", true);
EOF
# Hard-code path to TBB fonts; see also FONTCONFIG_FILE in
@ -233,6 +239,9 @@ stdenv.mkDerivation rec {
# Initialize the Tor data directory.
mkdir -p "\$HOME/TorBrowser/Data/Tor"
# TBB will fail if ownership is too permissive
chmod 0700 "\$HOME/TorBrowser/Data/Tor"
# Initialize the browser profile state. Note that the only data
# copied from the Store payload is the initial bookmark file, which is
# never updated once created. All other files under user's profile