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.
This commit is contained in:
Nicolas Vigier 2024-01-08 11:29:20 +01:00
parent e1e16dbb02
commit f4d2e314bf
No known key found for this signature in database
GPG Key ID: 4060847C8F4D2883

View File

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