#!/bin/sh
APP_DIR=$(dirname "$0")
APP_DIR=$(cd "$APP_DIR" && pwd)
APP_BINARY='VIDABLAB.bin'

has_no_sandbox=0
for arg in "$@"; do
  if [ "$arg" = "--no-sandbox" ]; then
    has_no_sandbox=1
    break
  fi
done

if [ "$has_no_sandbox" = "1" ]; then
  exec "$APP_DIR/$APP_BINARY" "$@"
fi

exec "$APP_DIR/$APP_BINARY" --no-sandbox "$@"
