$OpenBSD: patch-browser_extensions_tor-launcher_src_defaults_preferences_torlauncher-prefs_js,v 1.5 2021/07/14 19:27:15 sthen Exp $

Set all path-related prefs to minimize patching of tl-util.jsm/tl-process.js

Index: browser/extensions/tor-launcher/src/defaults/preferences/torlauncher-prefs.js
--- browser/extensions/tor-launcher/src/defaults/preferences/torlauncher-prefs.js.orig
+++ browser/extensions/tor-launcher/src/defaults/preferences/torlauncher-prefs.js
@@ -44,14 +44,17 @@ pref("extensions.torlauncher.socks_port_flags", "Exten
 // The tor_path is relative to the application directory. On Linux and
 // Windows this is the Browser/ directory that contains the firefox
 // executables, and on Mac OS it is the TorBrowser.app directory.
-pref("extensions.torlauncher.tor_path", "");
+pref("extensions.torlauncher.tor_path", "${LOCALBASE}/bin/tor");
+pref("extensions.torlauncher.torrc-defaults_path", "${LOCALBASE}/share/tor-browser/torrc-defaults");
+pref("extensions.torlauncher.geoip_path", "${LOCALBASE}/share/tor/geoip");
+pref("extensions.torlauncher.geoip6_path", "${LOCALBASE}/share/tor/geoip6");
 
 // The torrc_path and tordatadir_path are relative to the data directory,
 // which is TorBrowser-Data/ if it exists as a sibling of the application
 // directory. If TorBrowser-Data/ does not exist, these paths are relative
 // to the TorBrowser/ directory within the application directory.
-pref("extensions.torlauncher.torrc_path", "");
-pref("extensions.torlauncher.tordatadir_path", "");
+pref("extensions.torlauncher.torrc_path", "torrc");
+pref("extensions.torlauncher.tordatadir_path", "tor_data");
 
 // BridgeDB-related preferences (used for Moat).
 pref("extensions.torlauncher.bridgedb_front", "cdn.sstatic.net");
