#!/bin/bash # filepath: /home/pi/Desktop/signage-player/run_app.sh # Navigate to the application directory cd /home/pi/signage-player/src || exit # Check for the --verbose flag if [[ "$1" == "--verbose" ]]; then # Run the application with terminal output echo "Starting the application with terminal output..." python3 media_player.py else # Run the application and suppress terminal output echo "Starting the application without terminal output..." python3 media_player.py > /dev/null 2>&1 & fi