[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser-build][main] Bug 40892: Move tor app data.



Title: GitLab

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:

Changes:

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

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx