diff options
authoranonym <>2016-02-10 16:17:52 +0100
committeranonym <>2016-02-11 00:18:33 +0100
commit4173d78b97ad598aba59c91e7c742b8892a8341c (patch)
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
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}" "${@}"