#!/bin/bash # Return to Hotel Pi kiosk from Plex or other applications # This script kills the current app and restarts the kiosk set -e LOG_FILE="${LOG_FILE:-/tmp/hotel_pi_return.log}" echo "🔙 Returning to kiosk..." | tee -a "$LOG_FILE" echo "Time: $(date)" | tee -a "$LOG_FILE" # Kill any fullscreen applications pkill -f chromium || true pkill -f plex || true sleep 1 # Restart the kiosk /home/pi/scripts/launch-kiosk.sh