Skip to content

Commit

Permalink
add environment variable tb_no_start=true support
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Schleizer committed Oct 6, 2020
1 parent f14dd23 commit ce589c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions usr/bin/torbrowser
Expand Up @@ -720,6 +720,12 @@ tb_firejail_set_options() {
tb_start_tor_browser() {
local temp
local tb_exit_code="0"

## https://forums.whonix.org/t/system-wide-sandboxing-framework/9008/182
if [ "$tb_no_start" = "true" ]; then
return 0
fi

if [ "$tb_hardening" = "true" ]; then
temp="$tb_firejail_bin ${tb_firejailopts[@]} $tb_starter_bin_pre $tb_starter_bin --allow-remote $tb_starter_bin_post "$@""
$tb_firejail_bin ${tb_firejailopts[@]} $tb_starter_bin_pre $tb_starter_bin --allow-remote $tb_starter_bin_post "$@" || { tb_exit_code="$?" ; true; };
Expand Down

0 comments on commit ce589c2

Please sign in to comment.