#!/bin/bash

## Copyright (C) 2012 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

#### meta start
#### project Whonix
#### category networking
#### description
## uwt wrapped application

## ricochet does not have unix domain socket file support, therefore it depends
## on the TOR_CONTROL_HOST and TOR_CONTROL_PORT environment variables being
## set. Otherwise it would try to start its own Tor instance.
## https://phabricator.whonix.org/T444
TOR_CONTROL_HOST="127.0.0.1"
TOR_CONTROL_PORT="9151"
export TOR_CONTROL_HOST
export TOR_CONTROL_PORT

export uwtwrapper_parent="${BASH_SOURCE[0]}"
exec /usr/libexec/uwt/uwtwrapper "$@"
#### meta end
