#!/bin/bash # RDP Client Launcher Script # This script launches the Python RDP client with the correct virtual environment SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PYTHON_VENV="$SCRIPT_DIR/.venv/bin/python" PYTHON_SCRIPT="$SCRIPT_DIR/rdp_client.py" # Check if virtual environment exists if [[ ! -f "$PYTHON_VENV" ]]; then echo "Error: Python virtual environment not found at $PYTHON_VENV" echo "Please run: python3 -m venv .venv && .venv/bin/pip install cryptography" exit 1 fi # Check if the Python script exists if [[ ! -f "$PYTHON_SCRIPT" ]]; then echo "Error: RDP client script not found at $PYTHON_SCRIPT" exit 1 fi # Launch the RDP client echo "Starting RDP Client..." exec "$PYTHON_VENV" "$PYTHON_SCRIPT" "$@"