Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / 
tor-browser-build


Commits:
dc6d32b9 by Pier Angelo Vendrame at 2026-03-05T18:17:47+01:00
Bug 40892: Move tor app data.

We stored app data such as torrc-defaults and the geoip files in the
directory where we are storing also the user data, which might be
confusing.

In addition to that, with this change, we make Linux and Windows
coherent with macOS, where we were already storing this data in the app
bundle for signing/notarization purposes.

And in general, it is clearer if we move user data to live outside the
program directory, as the updater will stop touching that directory.

- - - - -


1 changed file:

- projects/browser/build


Changes:

=====================================
projects/browser/build
=====================================
@@ -44,7 +44,7 @@ touch "$GENERATEDPREFSPATH"
   DOCSPATH=[% c('var/ProjectName') %]/Docs
   EXTSPATH=distribution/extensions
   TORBINPATH=TorBrowser/Tor
-  TORCONFIGPATH=TorBrowser/Data/Tor
+  TORCONFIGPATH=$TORBINPATH
 
   [% IF c("var/tor-browser") -%]
     PROFILEPATH=[% c('var/ProjectName') 
%]/Data/Browser/profile.default/extensions
@@ -230,6 +230,8 @@ done
 
 [% IF c("var/linux") && c("var/tor-browser") %]
   chmod 700 "${TB_STAGE_DIR}/Browser/[% c('var/ProjectName') %]/Data/Browser"
+  # Pre-create the data directory to make sure it gets restrictive permissions.
+  mkdir -p "${TB_STAGE_DIR}/Browser/TorBrowser/Data/Tor"
   chmod 700 "${TB_STAGE_DIR}/Browser/TorBrowser/Data/Tor"
 [% END %]
 



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/dc6d32b9c18f98e12b46a7093f1dcfbce9eb588f

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/dc6d32b9c18f98e12b46a7093f1dcfbce9eb588f
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to