Trailing spaces in environment variables leads to confusing behaviour
If the environment variable TOR_SKIP_LAUNCH
is set to "1"
, Tor Launcher will not start Tor. However, if the value is set to "1 "
then Tor will be started. This is confusing behaviour and occurs on Windows, for example, with the following command:
C:\Windows\System32\cmd.exe /c "SET TOR_SKIP_LAUNCH=1 && SET TOR_SOCKS_PORT=9150 && START /D ^"C:\path\to\Tor Browser\Browser^" firefox.exe"
If the environment variable were parsed as an integer rather than compared to "1"
this confusion would not occur.