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

[tor-commits] [Git][tpo/applications/mullvad-browser][mullvad-browser-149.0a1-16.0-2] fixup! BB 9173: Change the default Firefox profile directory to be relative.



Title: GitLab

Pier Angelo Vendrame pushed to branch mullvad-browser-149.0a1-16.0-2 at The Tor Project / Applications / Mullvad Browser

Commits:

  • 864b2e0b
    by Pier Angelo Vendrame at 2026-04-20T14:47:21+02:00
    fixup! BB 9173: Change the default Firefox profile directory to be relative.
    
    BB 44560: Customize env variables for alternate data directories.
    
    In Bug 283779, Mozilla added a couple of environment variables to set
    custom app data directories.
    
    In this patch, we replace their MOZ_ prefix to make sure we do not
    match any customization users might have done for Firefox, so that we
    keep the profiles distinct.
    

2 changed files:

Changes:

  • python/mozbuild/mozbuild/mach_commands.py
    ... ... @@ -2461,22 +2461,22 @@ def _run_desktop(
    2461 2461
             if appdata is True:
    
    2462 2462
                 appdata = tmpdir
    
    2463 2463
     
    
    2464
    -        extra_env["MOZ_APP_DATA"] = os.path.normpath(
    
    2464
    +        extra_env["BB_APP_DATA"] = os.path.normpath(
    
    2465 2465
                 os.path.join(appdata, "AppData", "Roaming")
    
    2466 2466
             )
    
    2467 2467
             command_context.log(
    
    2468 2468
                 logging.INFO,
    
    2469 2469
                 "run",
    
    2470
    -            {"app_data": extra_env["MOZ_APP_DATA"]},
    
    2470
    +            {"app_data": extra_env["BB_APP_DATA"]},
    
    2471 2471
                 "Overriding application data directory to {app_data}",
    
    2472 2472
             )
    
    2473
    -        extra_env["MOZ_LOCAL_APP_DATA"] = os.path.normpath(
    
    2473
    +        extra_env["BB_LOCAL_APP_DATA"] = os.path.normpath(
    
    2474 2474
                 os.path.join(appdata, "Local")
    
    2475 2475
             )
    
    2476 2476
             command_context.log(
    
    2477 2477
                 logging.INFO,
    
    2478 2478
                 "run",
    
    2479
    -            {"local_app_data": extra_env["MOZ_LOCAL_APP_DATA"]},
    
    2479
    +            {"local_app_data": extra_env["BB_LOCAL_APP_DATA"]},
    
    2480 2480
                 "Overriding local application data directory to {local_app_data}",
    
    2481 2481
             )
    
    2482 2482
     
    

  • toolkit/xre/nsXREDirProvider.cpp
    ... ... @@ -1451,9 +1451,9 @@ nsresult nsXREDirProvider::GetSystemExtensionsDirectory(nsIFile** aFile) {
    1451 1451
     
    
    1452 1452
     nsresult nsXREDirProvider::GetUserDataDirectory(nsIFile** aFile, bool aLocal) {
    
    1453 1453
       nsCOMPtr<nsIFile> localDir;
    
    1454
    -  nsCOMPtr<nsIFile> customDir = mozilla::GetFileFromEnv("MOZ_APP_DATA");
    
    1454
    +  nsCOMPtr<nsIFile> customDir = mozilla::GetFileFromEnv("BB_APP_DATA");
    
    1455 1455
       nsCOMPtr<nsIFile> customLocalDir =
    
    1456
    -      mozilla::GetFileFromEnv("MOZ_LOCAL_APP_DATA");
    
    1456
    +      mozilla::GetFileFromEnv("BB_LOCAL_APP_DATA");
    
    1457 1457
     
    
    1458 1458
       if (aLocal && gDataDirProfileLocal) {
    
    1459 1459
         return gDataDirProfileLocal->Clone(aFile);
    

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