boklm pushed to branch main at The Tor Project / Applications / tor-browser-build

Commits:

1 changed file:

Changes:

  • projects/browser/RelativeLink/start-browser
    ... ... @@ -396,7 +396,7 @@ export GSETTINGS_BACKEND=memory
    396 396
     # $HOME/.cache/nvidia. We we can easily disable it.
    
    397 397
     export __GL_SHADER_DISK_CACHE=0
    
    398 398
     
    
    399
    -cd "${HOME}"
    
    399
    +cd "$browser_dir"
    
    400 400
     
    
    401 401
     # We pass all additional command-line arguments we get to Firefox.
    
    402 402
     #
    
    ... ... @@ -408,18 +408,18 @@ cd "${HOME}"
    408 408
     
    
    409 409
     if [ "$show_usage" -eq 1 ]; then
    
    410 410
       # Display Firefox help, then our help
    
    411
    -  [% IF c("var/tor-browser") %]TOR_CONTROL_PASSWD=${TOR_CONTROL_PASSWD}[% END %] "$browser_dir"/[% c('var/exe_name') %] --help 2>/dev/null
    
    411
    +  [% IF c("var/tor-browser") %]TOR_CONTROL_PASSWD=${TOR_CONTROL_PASSWD}[% END %] ./[% c('var/exe_name') %] --help 2>/dev/null
    
    412 412
       print_usage
    
    413 413
     elif [ "$detach" -eq 1 ] ; then
    
    414
    -  [% IF c("var/tor-browser") %]TOR_CONTROL_PASSWD=${TOR_CONTROL_PASSWD}[% END %] "$browser_dir"/[% c('var/exe_name') %] "${@}" > "$logfile" 2>&1 </dev/null &
    
    414
    +  [% IF c("var/tor-browser") %]TOR_CONTROL_PASSWD=${TOR_CONTROL_PASSWD}[% END %] ./[% c('var/exe_name') %] "${@}" > "$logfile" 2>&1 </dev/null &
    
    415 415
       disown "$!"
    
    416 416
     elif [ "$log_output" -eq 1 -a "$show_output" -eq 1 ]; then
    
    417
    -  [% IF c("var/tor-browser") %]TOR_CONTROL_PASSWD=${TOR_CONTROL_PASSWD}[% END %] "$browser_dir"/[% c('var/exe_name') %] "${@}" 2>&1 </dev/null | \
    
    417
    +  [% IF c("var/tor-browser") %]TOR_CONTROL_PASSWD=${TOR_CONTROL_PASSWD}[% END %] ./[% c('var/exe_name') %] "${@}" 2>&1 </dev/null | \
    
    418 418
         tee "$logfile"
    
    419 419
     elif [ "$show_output" -eq 1 ]; then
    
    420
    -  [% IF c("var/tor-browser") %]TOR_CONTROL_PASSWD=${TOR_CONTROL_PASSWD}[% END %] "$browser_dir"/[% c('var/exe_name') %] "${@}" < /dev/null
    
    420
    +  [% IF c("var/tor-browser") %]TOR_CONTROL_PASSWD=${TOR_CONTROL_PASSWD}[% END %] ./[% c('var/exe_name') %] "${@}" < /dev/null
    
    421 421
     else
    
    422
    -  [% IF c("var/tor-browser") %]TOR_CONTROL_PASSWD=${TOR_CONTROL_PASSWD}[% END %] "$browser_dir"/[% c('var/exe_name') %] "${@}" > "$logfile" 2>&1 </dev/null
    
    422
    +  [% IF c("var/tor-browser") %]TOR_CONTROL_PASSWD=${TOR_CONTROL_PASSWD}[% END %] ./[% c('var/exe_name') %] "${@}" > "$logfile" 2>&1 </dev/null
    
    423 423
     fi
    
    424 424
     
    
    425 425
     exit $?