
TV_VERSION='15.55.3'
TV_PKGTYPE='TAR_QS'
TV_EDITION='QS'

TV_BIN_DIR="$(dirname "$TV_SCRIPT_DIR")"
TV_BASE_DIR="$(dirname "$TV_BIN_DIR")"

if isInstalledTV ; then
  TV_USER_CONFIG_SUBPATH='.config/teamviewer'
  TV_USER_LOCAL_SUBPATH='.local/share/teamviewer15'

  TV_PROFILE="$HOME/$TV_USER_LOCAL_SUBPATH"
  TV_LOG_DIR="$TV_PROFILE/logfiles"
  TV_CFG_DIR="$HOME/$TV_USER_CONFIG_SUBPATH"

  TV_DESKTOP_FILE="$TV_BIN_DIR/desktop/com.teamviewer.TeamViewerQS.desktop"
  TV_INSTALL_LOG="$TV_BASE_DIR/logfiles/install_teamviewerd.log"

  TV_REMOTE_MANAGEMENT_DIR="/opt/teamviewer-rm"
else
  TV_PROFILE="$TV_BASE_DIR/profile"
  TV_LOG_DIR="$TV_BASE_DIR/logfiles"
  TV_CFG_DIR="$TV_BASE_DIR/config"

  TV_DESKTOP_DIR="$TV_BIN_DIR/desktop"
fi

if isTarPackage; then  # used in setup_teamviewer (tar.xz)
  TV_INSTALL_BASE_DIR=/opt/teamviewer
  TV_TARIN_LOGDIR="$TV_INSTALL_BASE_DIR/logfiles"
  TV_INSTALL_LOG="$TV_TARIN_LOGDIR/install_teamviewerd.log"
fi

TV_PIDFILE='/var/run/teamviewerd.pid'
TV_STARTLOG="$TV_LOG_DIR/startup.log"

TV_CHECKLIB_DIR='/tmp/teamviewerTARLibCheck'

export PATH=$TV_SCRIPT_DIR:$PATH
export TV_USERHOME=$HOME

