#!/bin/bash
# -*- mode: shell-script; coding: utf-8 -*-
#
# Copyright 2002-2014 Cendio AB.
# For more information, see http://www.cendio.com
#
# action: Enabling notifications when the session is shadowed
#

if [ -z "${TLPREFIX}" ]; then
    echo "Cannot work without TLPREFIX. Exiting."
else
    MODE=$(${TLPREFIX}/bin/tl-config /shadowing/shadowing_mode)
    ${TLPREFIX}/libexec/vnc-shadow-notify ${MODE} &
fi
