#!/bin/bash

## Copyright (C) 2019 - 2023 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

## Allow users of Kicksecure to use Tor Browser as their default browser when
## they create file /etc/torbrowser-default-browser.
if [ -f /etc/torbrowser-default-browser ]; then
   browser=torbrowser
fi

## If none of above is true then default to Tor Browser.
if [ "$browser" = "" ]; then
   browser=torbrowser
fi

"$browser" "$@"
