summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2016-02-10 16:17:52 +0100
committeranonym <anonym@riseup.net>2016-02-11 00:18:33 +0100
commit4173d78b97ad598aba59c91e7c742b8892a8341c (patch)
treee4f8204abb01a59965c0a0620f04260f5556d386
parent4d769db08c705ee79c7a772e93041a7e4439a458 (diff)
Use an appropriate working directory when launching the Tor Browser.
The Tor Browser assumes that the working directory is the directory where the browser lives (e.g. the executable). For instance, the fonts.conf (for fontconfig) the Tor Browser uses looks for the fonts in the "fonts" sub-directory of the current working directory. This will fix issues with "empty boxes" as characters in the Save As/Open dialoges. Will-fix: #11097
-rwxr-xr-xconfig/chroot_local-includes/usr/local/bin/tor-browser5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/chroot_local-includes/usr/local/bin/tor-browser b/config/chroot_local-includes/usr/local/bin/tor-browser
index 90c5739..fcdee2a 100755
--- a/config/chroot_local-includes/usr/local/bin/tor-browser
+++ b/config/chroot_local-includes/usr/local/bin/tor-browser
@@ -60,6 +60,11 @@ start_browser() {
export FONTCONFIG_PATH="${TBB_INSTALL}/TorBrowser/Data/fontconfig"
export FONTCONFIG_FILE="fonts.conf"
+ # The Tor Browser often assumes that the current directory is
+ # where the browser lives, e.g. for the fixed set of fonts set by
+ # fontconfig above.
+ cd "${TBB_INSTALL}"
+
exec_firefox -allow-remote --class "Tor Browser" -profile "${PROFILE}" "${@}"
}