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

[tor-commits] [Git][tpo/applications/torbrowser-launcher][main] Set the TORBROWSER_LAUNCHER environment variable (#8)



Title: GitLab

boklm pushed to branch main at The Tor Project / Applications / torbrowser-launcher

Commits:

  • f4d2e314
    by Nicolas Vigier at 2024-01-08T11:32:06+01:00
    Set the TORBROWSER_LAUNCHER environment variable (#8)
    
    Set an environment variable to make it easier for Tor Browser to see
    that torbrowser-launcher is being used.
    

1 changed file:

Changes:

  • torbrowser_launcher/__init__.py
    ... ... @@ -64,6 +64,10 @@ def main():
    64 64
         settings = bool(args.settings)
    
    65 65
         url_list = args.url
    
    66 66
     
    
    67
    +    # Set the TORBROWSER_LAUNCHER env variable to make it easier to
    
    68
    +    # detect that torbrowser-launcher is being used
    
    69
    +    os.environ["TORBROWSER_LAUNCHER"] = "1"
    
    70
    +
    
    67 71
         # Load the version and print the banner
    
    68 72
         with open(os.path.join(SHARE, "version")) as buf:
    
    69 73
             tor_browser_launcher_version = buf.read().strip()
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits