Skip to content

Commit

Permalink
Update start-server.sh
Browse files Browse the repository at this point in the history
Added option to disable the app running in fullscreen
  • Loading branch information
Joly0 authored Nov 6, 2024
1 parent 67dab2a commit f815e9e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions scripts/start-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,16 @@ monitor_and_install() {

while true; do
echo "Starting $EXECUTABLE"
$EXECUTABLE --fullscreen &

# Check if NO_FULLSCREEN is set (to any value)
if [ -z "$NO_FULLSCREEN" ]; then
FLAGS="--fullscreen"
else
FLAGS=""
fi

# Start the executable with or without the fullscreen flag
$EXECUTABLE $FLAGS &
PID=$!

# Start monitoring in background
Expand All @@ -143,4 +152,4 @@ while true; do

display_message "REAL-Video-Enhancer has stopped. Restarting in 5 seconds..."
sleep 5
done
done

0 comments on commit f815e9e

Please sign in to comment.